Lines Matching refs:portConfigId

241 std::vector<AudioDevice> Module::findConnectedDevices(int32_t portConfigId) {  in findConnectedDevices()  argument
244 auto portIds = portIdsFromPortConfigIds(findConnectedPortConfigIds(portConfigId)); in findConnectedDevices()
254 std::set<int32_t> Module::findConnectedPortConfigIds(int32_t portConfigId) { in findConnectedPortConfigIds() argument
256 auto patchIdsRange = mPatches.equal_range(portConfigId); in findConnectedPortConfigIds()
266 portConfigId) != patchIt->sourcePortConfigIds.end()) { in findConnectedPortConfigIds()
416 for (auto portConfigId : portConfigIds) { in registerPatch() local
417 auto configIt = findById<AudioPortConfig>(configs, portConfigId); in registerPatch()
419 mPatches.insert(std::pair{portConfigId, patch.id}); in registerPatch()
420 if (configIt->portId != portConfigId) { in registerPatch()
446 [&](int32_t portConfigId) { return mStreams.count(portConfigId) > 0; }) != in updateStreamsConnectedState() argument
451 [&](int32_t portConfigId) { in updateStreamsConnectedState() argument
452 return mStreams.count(portConfigId) > 0; in updateStreamsConnectedState()
504 [&](const auto& portConfigId) { in updateStreamsConnectedState() argument
505 auto status = mStreams.setStreamConnectedDevices(portConfigId, {}); in updateStreamsConnectedState()
856 LOG(DEBUG) << __func__ << ": " << mType << ": port config id " << in_args.portConfigId in openInputStream()
859 RETURN_STATUS_IF_ERROR(findPortIdForNewStream(in_args.portConfigId, &port)); in openInputStream()
861 LOG(ERROR) << __func__ << ": " << mType << ": port config id " << in_args.portConfigId in openInputStream()
866 RETURN_STATUS_IF_ERROR(createStreamContext(in_args.portConfigId, in_args.bufferSizeFrames, in openInputStream()
873 if (auto patchIt = mPatches.find(in_args.portConfigId); patchIt != mPatches.end()) { in openInputStream()
875 streamWrapper.setConnectedDevices(findConnectedDevices(in_args.portConfigId))); in openInputStream()
880 mStreams.insert(port->id, in_args.portConfigId, std::move(streamWrapper)); in openInputStream()
887 LOG(DEBUG) << __func__ << ": " << mType << ": port config id " << in_args.portConfigId in openOutputStream()
891 RETURN_STATUS_IF_ERROR(findPortIdForNewStream(in_args.portConfigId, &port)); in openOutputStream()
893 LOG(ERROR) << __func__ << ": " << mType << ": port config id " << in_args.portConfigId in openOutputStream()
912 RETURN_STATUS_IF_ERROR(createStreamContext(in_args.portConfigId, in_args.bufferSizeFrames, in openOutputStream()
920 if (auto patchIt = mPatches.find(in_args.portConfigId); patchIt != mPatches.end()) { in openOutputStream()
922 streamWrapper.setConnectedDevices(findConnectedDevices(in_args.portConfigId))); in openOutputStream()
927 mStreams.insert(port->id, in_args.portConfigId, std::move(streamWrapper)); in openOutputStream()