Lines Matching refs:patchId
106 const sp<StreamHalInterface>& stream, int32_t mixPortConfigId, int32_t patchId) { in addStream() argument
107 mStreams.insert(std::pair(stream, std::pair(mixPortConfigId, patchId))); in addStream()
128 int32_t* patchId, Cleanups* cleanups) { in createOrUpdatePatch() argument
129 auto existingPatchIt = *patchId != 0 ? mPatches.find(*patchId): mPatches.end(); in createOrUpdatePatch()
141 __func__, *patchId, ::android::internal::ToString(sources).c_str(), in createOrUpdatePatch()
217 *patchId = patch.id; in createOrUpdatePatch()
748 for (const auto& [patchId, patch] : mPatches) { in getPatchIdsByPortId()
751 result.insert(patchId); in getPatchIdsByPortId()
757 result.insert(patchId); in getPatchIdsByPortId()
890 status_t Hal2AidlMapper::releaseAudioPatch(int32_t patchId) { in releaseAudioPatch() argument
891 return releaseAudioPatches({patchId}); in releaseAudioPatch()
896 const int32_t patchId = it->first; in releaseAudioPatch() local
897 if (ndk::ScopedAStatus status = mModule->resetAudioPatch(patchId); !status.isOk()) { in releaseAudioPatch()
899 __func__, patchId, status.getDescription().c_str()); in releaseAudioPatch()
904 if (it->second == patchId) { in releaseAudioPatch()
914 for (const auto patchId : patchIds) { in releaseAudioPatches() local
915 if (auto it = mPatches.find(patchId); it != mPatches.end()) { in releaseAudioPatches()
918 ALOGE("%s: patch id %d not found", __func__, patchId); in releaseAudioPatches()
947 if (const int32_t patchId = it->second.second; patchId != -1) { in resetUnusedPatchesAndPortConfigs() local
948 patchesToRelease.insert(patchId); in resetUnusedPatchesAndPortConfigs()
1061 for (int32_t patchId : patchIdsToRelease) { in setDevicePortConnectedState() local
1062 if (auto it = mPatches.find(patchId); it != mPatches.end()) { in setDevicePortConnectedState()
1064 releasedPatches.insert(std::make_pair(patchId, patchId)); in setDevicePortConnectedState()