Loading services/audiopolicy/common/managerdefinitions/src/DeviceDescriptor.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -129,7 +129,7 @@ void DeviceVector::refreshTypes() ssize_t DeviceVector::indexOf(const sp<DeviceDescriptor>& item) const { for (size_t i = 0; i < size(); i++) { if (item->equals(itemAt(i))) { if (itemAt(i)->equals(item)) { // item may be null sp<>, i.e. AUDIO_DEVICE_NONE return i; } } Loading services/audiopolicy/managerdefault/AudioPolicyManager.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -5062,7 +5062,7 @@ sp<DeviceDescriptor> AudioPolicyManager::getNewInputDevice( } // If we are not in call and no client is active on this input, this methods returns // AUDIO_DEVICE_NONE, causing the patch on the input stream to be released. // a null sp<>, causing the patch on the input stream to be released. audio_attributes_t attributes = inputDesc->getHighestPriorityAttributes(); if (attributes.source == AUDIO_SOURCE_DEFAULT && isInCall()) { attributes.source = AUDIO_SOURCE_VOICE_COMMUNICATION; Loading Loading
services/audiopolicy/common/managerdefinitions/src/DeviceDescriptor.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -129,7 +129,7 @@ void DeviceVector::refreshTypes() ssize_t DeviceVector::indexOf(const sp<DeviceDescriptor>& item) const { for (size_t i = 0; i < size(); i++) { if (item->equals(itemAt(i))) { if (itemAt(i)->equals(item)) { // item may be null sp<>, i.e. AUDIO_DEVICE_NONE return i; } } Loading
services/audiopolicy/managerdefault/AudioPolicyManager.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -5062,7 +5062,7 @@ sp<DeviceDescriptor> AudioPolicyManager::getNewInputDevice( } // If we are not in call and no client is active on this input, this methods returns // AUDIO_DEVICE_NONE, causing the patch on the input stream to be released. // a null sp<>, causing the patch on the input stream to be released. audio_attributes_t attributes = inputDesc->getHighestPriorityAttributes(); if (attributes.source == AUDIO_SOURCE_DEFAULT && isInCall()) { attributes.source = AUDIO_SOURCE_VOICE_COMMUNICATION; Loading