Loading services/audiopolicy/managerdefault/AudioPolicyManager.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -3820,7 +3820,11 @@ status_t AudioPolicyManager::releaseAudioPatchInternal(audio_patch_handle_t hand ALOGE("%s output not found for id %d", __func__, patch->sources[0].id); return BAD_VALUE; } // Reset handle so that setOutputDevice will force new AF patch to reach the sink if (patchDesc->getHandle() != outputDesc->getPatchHandle()) { // force SwOutput patch removal as AF counter part patch has already gone. ALOGV("%s reset patch handle on Output as different from SWBridge", __func__); removeAudioPatch(outputDesc->getPatchHandle()); } outputDesc->setPatchHandle(AUDIO_PATCH_HANDLE_NONE); setOutputDevices(outputDesc, getNewOutputDevices(outputDesc, true /*fromCache*/), Loading Loading
services/audiopolicy/managerdefault/AudioPolicyManager.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -3820,7 +3820,11 @@ status_t AudioPolicyManager::releaseAudioPatchInternal(audio_patch_handle_t hand ALOGE("%s output not found for id %d", __func__, patch->sources[0].id); return BAD_VALUE; } // Reset handle so that setOutputDevice will force new AF patch to reach the sink if (patchDesc->getHandle() != outputDesc->getPatchHandle()) { // force SwOutput patch removal as AF counter part patch has already gone. ALOGV("%s reset patch handle on Output as different from SWBridge", __func__); removeAudioPatch(outputDesc->getPatchHandle()); } outputDesc->setPatchHandle(AUDIO_PATCH_HANDLE_NONE); setOutputDevices(outputDesc, getNewOutputDevices(outputDesc, true /*fromCache*/), Loading