Loading services/audiopolicy/common/managerdefinitions/src/AudioOutputDescriptor.cpp +8 −2 Original line number Diff line number Diff line Loading @@ -690,7 +690,9 @@ bool SwAudioOutputCollection::isActiveLocally(VolumeSource volumeSource, uint32_ const sp<SwAudioOutputDescriptor> outputDesc = this->valueAt(i); if (outputDesc->isActive(volumeSource, inPastMs, sysTime) && (!(outputDesc->devices() .containsDeviceAmongTypes(getAllOutRemoteDevices())))) { .containsDeviceAmongTypes(getAllOutRemoteDevices()) || outputDesc->devices() .onlyContainsDevicesWithType(AUDIO_DEVICE_OUT_TELEPHONY_TX)))) { return true; } } Loading Loading @@ -722,9 +724,13 @@ bool SwAudioOutputCollection::isStrategyActiveOnSameModule(product_strategy_t ps const sp<SwAudioOutputDescriptor> otherDesc = valueAt(i); if (desc->sharesHwModuleWith(otherDesc) && otherDesc->isStrategyActive(ps, inPastMs, sysTime)) { if (desc == otherDesc || !otherDesc->devices() .onlyContainsDevicesWithType(AUDIO_DEVICE_OUT_TELEPHONY_TX)) { return true; } } } return false; } Loading Loading
services/audiopolicy/common/managerdefinitions/src/AudioOutputDescriptor.cpp +8 −2 Original line number Diff line number Diff line Loading @@ -690,7 +690,9 @@ bool SwAudioOutputCollection::isActiveLocally(VolumeSource volumeSource, uint32_ const sp<SwAudioOutputDescriptor> outputDesc = this->valueAt(i); if (outputDesc->isActive(volumeSource, inPastMs, sysTime) && (!(outputDesc->devices() .containsDeviceAmongTypes(getAllOutRemoteDevices())))) { .containsDeviceAmongTypes(getAllOutRemoteDevices()) || outputDesc->devices() .onlyContainsDevicesWithType(AUDIO_DEVICE_OUT_TELEPHONY_TX)))) { return true; } } Loading Loading @@ -722,9 +724,13 @@ bool SwAudioOutputCollection::isStrategyActiveOnSameModule(product_strategy_t ps const sp<SwAudioOutputDescriptor> otherDesc = valueAt(i); if (desc->sharesHwModuleWith(otherDesc) && otherDesc->isStrategyActive(ps, inPastMs, sysTime)) { if (desc == otherDesc || !otherDesc->devices() .onlyContainsDevicesWithType(AUDIO_DEVICE_OUT_TELEPHONY_TX)) { return true; } } } return false; } Loading