Loading services/audiopolicy/managerdefault/AudioPolicyManager.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -5266,6 +5266,12 @@ DeviceVector AudioPolicyManager::getNewOutputDevices(const sp<SwAudioOutputDescr } } // Do not retrieve engine device for outputs through MSD // TODO: support explicit routing requests by resetting MSD patch to engine device. if (outputDesc->devices() == getMsdAudioOutDevices()) { return outputDesc->devices(); } // Honor explicit routing requests only if no client using default routing is active on this // input: a specific app can not force routing for other apps by setting a preferred device. bool active; // unused Loading services/audiopolicy/tests/AudioPolicyManagerTestClient.h +4 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,10 @@ public: status_t createAudioPatch(const struct audio_patch *patch, audio_patch_handle_t *handle, int /*delayMs*/) override { auto iter = mActivePatches.find(*handle); if (iter != mActivePatches.end()) { mActivePatches.erase(*handle); } *handle = mNextPatchHandle++; mActivePatches.insert(std::make_pair(*handle, *patch)); return NO_ERROR; Loading Loading
services/audiopolicy/managerdefault/AudioPolicyManager.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -5266,6 +5266,12 @@ DeviceVector AudioPolicyManager::getNewOutputDevices(const sp<SwAudioOutputDescr } } // Do not retrieve engine device for outputs through MSD // TODO: support explicit routing requests by resetting MSD patch to engine device. if (outputDesc->devices() == getMsdAudioOutDevices()) { return outputDesc->devices(); } // Honor explicit routing requests only if no client using default routing is active on this // input: a specific app can not force routing for other apps by setting a preferred device. bool active; // unused Loading
services/audiopolicy/tests/AudioPolicyManagerTestClient.h +4 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,10 @@ public: status_t createAudioPatch(const struct audio_patch *patch, audio_patch_handle_t *handle, int /*delayMs*/) override { auto iter = mActivePatches.find(*handle); if (iter != mActivePatches.end()) { mActivePatches.erase(*handle); } *handle = mNextPatchHandle++; mActivePatches.insert(std::make_pair(*handle, *patch)); return NO_ERROR; Loading