Home
last modified time | relevance | path

Searched refs:ports (Results 1 – 25 of 47) sorted by relevance

12

/drivers/peripheral/audio/hdi_service/primary_impl/vendor_src/
Daudio_manager_vendor.c43 static void AudioManagerReleasePort(struct AudioPort **ports, uint32_t portsLen) in AudioManagerReleasePort() argument
45 CHECK_NULL_PTR_RETURN(ports); in AudioManagerReleasePort()
52 struct AudioPort *portsTmp = *ports; in AudioManagerReleasePort()
57 *ports = NULL; in AudioManagerReleasePort()
87 if (desc->ports != NULL) { in AudioManagerReleaseDesc()
88 AudioManagerReleasePort(&desc->ports, desc->portsLen); in AudioManagerReleaseDesc()
103 if (hwiDesc->ports != NULL) { in AudioManagerReleaseHwiDesc()
104 AudioManagerReleaseHwiPort(&hwiDesc->ports, hwiDesc->portNum); in AudioManagerReleaseHwiDesc()
142 hwiPorts[i].portName = strdup(desc->ports[i].portName); in AudioManagerPortToHwiPort()
143 hwiPorts[i].portId = desc->ports[i].portId; in AudioManagerPortToHwiPort()
[all …]
/drivers/peripheral/audio/hdi_service/primary_impl/vdi_src/
Daudio_manager_vdi.c40 static void AudioManagerReleasePort(struct AudioPort **ports, uint32_t portsLen) in AudioManagerReleasePort() argument
42 CHECK_NULL_PTR_RETURN(ports); in AudioManagerReleasePort()
49 struct AudioPort *portsTmp = *ports; in AudioManagerReleasePort()
54 *ports = NULL; in AudioManagerReleasePort()
78 if (desc->ports != NULL) { in AudioManagerReleaseDesc()
79 AudioManagerReleasePort(&desc->ports, desc->portsLen); in AudioManagerReleaseDesc()
88 if (vdiDesc->ports != NULL) { in AudioManagerReleaseVdiDesc()
89 AudioManagerReleaseVdiPort(&vdiDesc->ports, vdiDesc->portsLen); in AudioManagerReleaseVdiDesc()
127 vdiPorts[i].portName = strdup(desc->ports[i].portName); in AudioManagerPortToVdiPort()
128 vdiPorts[i].portId = desc->ports[i].portId; in AudioManagerPortToVdiPort()
[all …]
/drivers/peripheral/camera/vdi_base/common/adapter/platform/mpp/src/pipeline_core/nodes/mpi_node/
Dmpi_node.cpp36 std::vector<std::shared_ptr<IPort>> ports = GetOutPorts(); in ConnectMpi() local
37 if (ports.empty()) { in ConnectMpi()
42 for (auto& it : ports) { in ConnectMpi()
74 std::vector<std::shared_ptr<IPort>> ports = GetOutPorts(); in DisConnectMpi() local
75 if (ports.empty()) { in DisConnectMpi()
80 for (auto& it : ports) { in DisConnectMpi()
/drivers/peripheral/audio/test/benchmarktest/capture/
Daudio_capture_mmap_benchmarktest.cpp57 ASSERT_NE(adapterDescs_->ports, nullptr); in InitCaptureDevDesc()
64 if (adapterDescs_->ports[index].dir == PORT_IN) { in InitCaptureDevDesc()
65 devDesc.portId = adapterDescs_->ports[index].portId; in InitCaptureDevDesc()
98 if (dataBlock->ports != nullptr) { in FreeAdapterElements()
99 OsalMemFree(dataBlock->ports); in FreeAdapterElements()
/drivers/peripheral/audio/test/benchmarktest/render/
Daudio_render_mmap_benchmarktest.cpp81 ASSERT_NE(desc_->ports, nullptr); in InitRenderDevDesc()
83 if (desc_->ports[index].dir == PORT_OUT) { in InitRenderDevDesc()
84 devDesc.portId = desc_->ports[index].portId; in InitRenderDevDesc()
100 OsalMemFree(dataBlock->ports); in FreeAdapterElements()
/drivers/peripheral/audio/test/unittest/common/render/
Daudio_render_mmap_test.cpp77 ASSERT_NE(desc_->ports, nullptr); in InitRenderDevDesc()
79 if (desc_->ports[index].dir == PORT_OUT) { in InitRenderDevDesc()
80 devDesc.portId = desc_->ports[index].portId; in InitRenderDevDesc()
95 OsalMemFree(dataBlock->ports); in FreeAdapterElements()
/drivers/peripheral/audio/test/unittest/common/capture/
Daudio_capture_mmap_test.cpp54 ASSERT_NE(adapterDescs_->ports, nullptr); in InitCaptureDevDesc()
61 if (adapterDescs_->ports[index].dir == PORT_IN) { in InitCaptureDevDesc()
62 devDesc.portId = adapterDescs_->ports[index].portId; in InitCaptureDevDesc()
95 if (dataBlock->ports != nullptr) { in FreeAdapterElements()
96 OsalMemFree(dataBlock->ports); in FreeAdapterElements()
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
Daudio_adapter_info_common.cpp176 if (desc->ports != NULL) { in AudioAdapterJudegReleaseDescs()
180 AudioMemFree(reinterpret_cast<void **>(const_cast<AudioPort **>(&desc->ports))); in AudioAdapterJudegReleaseDescs()
186 if (desc->ports[portIdx].portName != NULL) { in AudioAdapterJudegReleaseDescs()
187 AudioMemFree((void **)&desc->ports[portIdx].portName); in AudioAdapterJudegReleaseDescs()
191 AudioMemFree(reinterpret_cast<void **>(const_cast<AudioPort **>(&desc->ports))); in AudioAdapterJudegReleaseDescs()
353 …desc->ports = reinterpret_cast<struct AudioPort *>(calloc(1, desc->portNum * sizeof(struct AudioPo… in AudioAdapterParsePorts()
354 if (desc->ports == NULL) { in AudioAdapterParsePorts()
362 ret = AudioAdapterParsePort(&desc->ports[i], adapterPort); in AudioAdapterParsePorts()
569 … if (strcmp(g_audioAdapterOut[i].ports[j].portName, g_audioAdapterDescs[i].ports[j].portName)) { in AudioPortsNamesRepair()
571 g_audioAdapterOut[i].ports[j].portName = g_portsName[i][j]; in AudioPortsNamesRepair()
[all …]
Daudio_adapter.cpp268 struct AudioPort *ports = hwAdapter->adapterDescriptor.ports; in AudioAdapterInitAllPorts() local
269 if (ports == NULL) { in AudioAdapterInitAllPorts()
283 portCapability[i].port = ports[i]; in AudioAdapterInitAllPorts()
284 if (InitForGetPortCapability(ports[i], &portCapability[i].capability)) { in AudioAdapterInitAllPorts()
/drivers/peripheral/audio/supportlibs/adm_adapter/src/
Daudio_interface_lib_common.c345 desc->ports = (struct AudioPort *)OsalMemCalloc(sizeof(struct AudioPort) * portNum); in AudioReadCardPortToDesc()
346 if (desc->ports == NULL) { in AudioReadCardPortToDesc()
352 if (!HdfSbufReadUint8(reply, (uint8_t *)&desc->ports[i].dir)) { in AudioReadCardPortToDesc()
354 AudioMemFree((void **)&desc->ports); in AudioReadCardPortToDesc()
358 if (desc->ports[i].dir == PORT_IN) { in AudioReadCardPortToDesc()
359 desc->ports[i].portName = strdup("AIP"); in AudioReadCardPortToDesc()
360 } else if (desc->ports[i].dir == PORT_OUT) { in AudioReadCardPortToDesc()
361 desc->ports[i].portName = strdup("AOP"); in AudioReadCardPortToDesc()
362 } else if (desc->ports[i].dir == PORT_OUT_IN) { in AudioReadCardPortToDesc()
363 desc->ports[i].portName = strdup("AOIP"); in AudioReadCardPortToDesc()
[all …]
/drivers/peripheral/audio/test/benchmarktest/manager/
Daudio_manager_benchmarktest.cpp52 if (dataBlock->ports != nullptr) { in AudioAdapterDescriptorFree()
53 OsalMemFree(dataBlock->ports); in AudioAdapterDescriptorFree()
/drivers/peripheral/audio/test/benchmarktest/adapter/
Daudio_adapter_benchmarktest.cpp65 if (dataBlock->ports != nullptr) { in AudioAdapterDescriptorFree()
66 OsalMemFree(dataBlock->ports); in AudioAdapterDescriptorFree()
103 ASSERT_NE(adapterDescs_->ports, nullptr); in InitDevDesc()
105 if (adapterDescs_->ports[index].dir == PORT_OUT) { in InitDevDesc()
106 devDesc.portId = adapterDescs_->ports[index].portId; in InitDevDesc()
/drivers/peripheral/camera/vdi_base/common/pipeline_core/nodes/src/node_base/
Dnode_base.cpp207 auto ports = GetOutPorts(); in GetOutPortById() local
208 if (ports.size() <= id) { in GetOutPortById()
211 return ports[id]; in GetOutPortById()
/drivers/peripheral/audio/test/fuzztest/audio_hdi_fuzzer/audiomanager_fuzzer/
Daudiomanager_fuzzer.cpp60 .ports = &port, in DoSomethingInterestingWithMyAPI()
/drivers/peripheral/audio/test/sample/
Dframework_common.c39 if (descs->ports[port].dir == portFlag) { in SwitchAudioPort()
40 *renderPort = descs->ports[port]; in SwitchAudioPort()
/drivers/peripheral/audio/test/unittest/common/adapter/
Daudio_adapter_common_test.cpp65 if (dataBlock->ports != nullptr) { in AudioAdapterDescriptorFree()
66 OsalMemFree(dataBlock->ports); in AudioAdapterDescriptorFree()
103 ASSERT_NE(adapterDescs_->ports, nullptr); in InitDevDesc()
105 if (adapterDescs_->ports[index].dir == PORT_OUT) { in InitDevDesc()
106 devDesc.portId = adapterDescs_->ports[index].portId; in InitDevDesc()
315 struct AudioPort port = adapterDescs_[0].ports[0];
/drivers/peripheral/audio/hal/hdi_passthrough/src/
Daudio_adapter_info_common.c81 if (desc->ports != NULL) { in AudioAdapterJudegReleaseDescs()
85 AudioMemFree((void **)&desc->ports); in AudioAdapterJudegReleaseDescs()
91 if (desc->ports[portIdx].portName != NULL) { in AudioAdapterJudegReleaseDescs()
92 AudioMemFree((void **)&desc->ports[portIdx].portName); in AudioAdapterJudegReleaseDescs()
96 AudioMemFree((void **)&desc->ports); in AudioAdapterJudegReleaseDescs()
/drivers/peripheral/bluetooth/audio/hal/hdi_binder/proxy/src/
Daudio_proxy_manager.cpp72 desc->adapterName == NULL || desc->ports == NULL || adapter == NULL) { in AudioProxyManagerLoadAdapter()
86 uint32_t tempDir = (uint32_t)desc->ports->dir; in AudioProxyManagerLoadAdapter()
Daudio_proxy_adapter.cpp242 struct AudioPort *ports = hwAdapter->adapterDescriptor.ports; in AudioProxyAdapterInitAllPorts() local
243 if (ports == NULL || portNum == 0) { in AudioProxyAdapterInitAllPorts()
254 portCapability[i].port = ports[i]; in AudioProxyAdapterInitAllPorts()
255 if (InitForGetPortCapability(ports[i], &portCapability[i].capability)) { in AudioProxyAdapterInitAllPorts()
/drivers/peripheral/audio/hdi_service/primary_impl/src/
Daudio_adapter.c183 if (adapterDescriptor == NULL || adapterDescriptor->ports == NULL || id == NULL) { in AudioCheckDescPortId()
201 if (descs[index].ports[0].portId == portId) { in AudioCheckDescPortId()
216 if (descs[index].ports[0].portId <= AUDIO_PRIMARY_ID_MAX && in AudioCheckDescPortId()
217 descs[index].ports[0].portId >= AUDIO_PRIMARY_ID_MIN) { in AudioCheckDescPortId()
218 *id = descs[index].ports[0].portId; in AudioCheckDescPortId()
232 if (cardServiceName == NULL || adapterDescriptor == NULL || adapterDescriptor->ports == NULL) { in AudioMakeCardServiceName()
355 struct AudioPort *ports = hwAdapter->adapterDescriptor.ports; in AudioAdapterInitAllPorts() local
356 if (ports == NULL) { in AudioAdapterInitAllPorts()
371 portCapability[i].port = ports[i]; in AudioAdapterInitAllPorts()
372 if (InitForGetPortCapability(ports[i], &portCapability[i].capability)) { in AudioAdapterInitAllPorts()
Daudio_adapter_info_common.c83 if (desc->ports != NULL) { in AudioAdapterJudegReleaseDescs()
87 AudioMemFree((void **)&desc->ports); in AudioAdapterJudegReleaseDescs()
92 if (desc->ports[portIdx].portName != NULL) { in AudioAdapterJudegReleaseDescs()
93 AudioMemFree((void **)&desc->ports[portIdx].portName); in AudioAdapterJudegReleaseDescs()
97 AudioMemFree((void **)&desc->ports); in AudioAdapterJudegReleaseDescs()
/drivers/peripheral/audio/supportlibs/alsa_adapter/src/
Dalsa_lib_common.c1588 AudioPortNameFree((*descList)[index].ports, (*descList)[index].portNum); in AudioFreeDesc()
1590 AudioPortNameFree((*descList)[index].ports, (*descList)[index].portsLen); in AudioFreeDesc()
1646 if (desc == NULL || desc->adapterName == NULL || desc->ports == NULL) { in InitAudioPortsForUser()
1652 InitAudioPortOut(&desc->ports[0]); in InitAudioPortsForUser()
1653 InitAudioPortIn(&desc->ports[SUPPORT_CAPTURE_OR_RENDER]); in InitAudioPortsForUser()
1654 InitAudioPortOutAndIn(&desc->ports[SUPPORT_CAPTURE_AND_RENDER]); in InitAudioPortsForUser()
1656 InitAudioPortOut(&desc->ports[0]); in InitAudioPortsForUser()
1658 InitAudioPortOut(&desc->ports[0]); in InitAudioPortsForUser()
1659 InitAudioPortIn(&desc->ports[SUPPORT_CAPTURE_OR_RENDER]); in InitAudioPortsForUser()
1693 desc->ports = (struct AudioPort *)OsalMemCalloc(sizeof(struct AudioPort) * portNum); in AudioReadCardPortToDesc()
[all …]
/drivers/peripheral/audio/test/systemtest/common/hdi_service_common/src/
Dhdi_service_common.cpp130 if (desc->ports[port].dir == portFlag) { in SwitchAdapter()
131 audioPort.dir = desc->ports[port].dir; in SwitchAdapter()
132 audioPort.portId = desc->ports[port].portId; in SwitchAdapter()
133 audioPort.portName = strdup(desc->ports[port].portName); in SwitchAdapter()
228 if (dataBlock->ports != NULL) { in TestAudioAdapterDescriptorFree()
229 OsalMemFree(dataBlock->ports); in TestAudioAdapterDescriptorFree()
230 dataBlock->ports = NULL; in TestAudioAdapterDescriptorFree()
/drivers/peripheral/bluetooth/audio/interfaces/include/
Daudio_types.h76 struct AudioPort *ports; /**< List of ports supported by an audio adapter */ member
/drivers/peripheral/camera/vdi_base/common/pipeline_core/pipeline_impl/src/dispatcher/
Dstream_pipeline_dispatcher.cpp93 auto ports = node->GetOutPorts(); in CutUselessBranch() local
95 for (auto port : ports) { in CutUselessBranch()

12