Loading services/audiopolicy/managerdefault/AudioPolicyManager.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -7146,7 +7146,6 @@ DeviceVector AudioPolicyManager::getNewOutputDevices(const sp<SwAudioOutputDescr for (const auto &productStrategy : mEngine->getOrderedProductStrategies()) { StreamTypeVector streams = mEngine->getStreamTypesForProductStrategy(productStrategy); auto attr = mEngine->getAllAttributesForProductStrategy(productStrategy).front(); auto hasStreamActive = [&](auto stream) { return hasStream(streams, stream) && isStreamActive(stream, 0); }; Loading @@ -7171,6 +7170,7 @@ DeviceVector AudioPolicyManager::getNewOutputDevices(const sp<SwAudioOutputDescr mOutputs.isStrategyActiveOnSameModule(productStrategy, outputDesc))) { // Retrieval of devices for voice DL is done on primary output profile, cannot // check the route (would force modifying configuration file for this profile) auto attr = mEngine->getAllAttributesForProductStrategy(productStrategy).front(); devices = mEngine->getOutputDevicesForAttributes(attr, nullptr, fromCache); break; } Loading Loading
services/audiopolicy/managerdefault/AudioPolicyManager.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -7146,7 +7146,6 @@ DeviceVector AudioPolicyManager::getNewOutputDevices(const sp<SwAudioOutputDescr for (const auto &productStrategy : mEngine->getOrderedProductStrategies()) { StreamTypeVector streams = mEngine->getStreamTypesForProductStrategy(productStrategy); auto attr = mEngine->getAllAttributesForProductStrategy(productStrategy).front(); auto hasStreamActive = [&](auto stream) { return hasStream(streams, stream) && isStreamActive(stream, 0); }; Loading @@ -7171,6 +7170,7 @@ DeviceVector AudioPolicyManager::getNewOutputDevices(const sp<SwAudioOutputDescr mOutputs.isStrategyActiveOnSameModule(productStrategy, outputDesc))) { // Retrieval of devices for voice DL is done on primary output profile, cannot // check the route (would force modifying configuration file for this profile) auto attr = mEngine->getAllAttributesForProductStrategy(productStrategy).front(); devices = mEngine->getOutputDevicesForAttributes(attr, nullptr, fromCache); break; } Loading