Loading media/libaudiohal/impl/Hal2AidlMapper.cpp +8 −1 Original line number Diff line number Diff line Loading @@ -450,7 +450,7 @@ status_t Hal2AidlMapper::findPortConfig(const AudioDevice& device, AudioPortConf *portConfig = it->second; return OK; } ALOGE("%s: could not find a configured device port for device %s", ALOGE("%s: could not find a device port config for device %s", __func__, device.toString().c_str()); return BAD_VALUE; } Loading Loading @@ -1020,6 +1020,13 @@ status_t Hal2AidlMapper::setDevicePortConnectedState(const AudioPort& devicePort } } resetUnusedPortConfigs(); // Patches created by Hal2AidlMapper during stream creation and not "claimed" // by the framework must not be surfaced to it. for (auto& s : mStreams) { if (auto it = releasedPatches.find(s.second.second); it != releasedPatches.end()) { releasedPatches.erase(it); } } mFwkPatches.merge(releasedPatches); LOG_ALWAYS_FATAL_IF(!releasedPatches.empty(), "mFwkPatches already contains some of released patches"); Loading media/libaudiohal/tests/CoreAudioHalAidl_test.cpp +564 −16 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
media/libaudiohal/impl/Hal2AidlMapper.cpp +8 −1 Original line number Diff line number Diff line Loading @@ -450,7 +450,7 @@ status_t Hal2AidlMapper::findPortConfig(const AudioDevice& device, AudioPortConf *portConfig = it->second; return OK; } ALOGE("%s: could not find a configured device port for device %s", ALOGE("%s: could not find a device port config for device %s", __func__, device.toString().c_str()); return BAD_VALUE; } Loading Loading @@ -1020,6 +1020,13 @@ status_t Hal2AidlMapper::setDevicePortConnectedState(const AudioPort& devicePort } } resetUnusedPortConfigs(); // Patches created by Hal2AidlMapper during stream creation and not "claimed" // by the framework must not be surfaced to it. for (auto& s : mStreams) { if (auto it = releasedPatches.find(s.second.second); it != releasedPatches.end()) { releasedPatches.erase(it); } } mFwkPatches.merge(releasedPatches); LOG_ALWAYS_FATAL_IF(!releasedPatches.empty(), "mFwkPatches already contains some of released patches"); Loading
media/libaudiohal/tests/CoreAudioHalAidl_test.cpp +564 −16 File changed.Preview size limit exceeded, changes collapsed. Show changes