Home
last modified time | relevance | path

Searched refs:hwCapture (Results 1 - 13 of 13) sorted by relevance

/drivers/peripheral/audio/test/systemtest/supportlibs/common/capture/src/
H A Daudio_alsa_libcapture_test.cpp37 int32_t CreatHwCapture(struct AudioHwCapture *&hwCapture, const std::string adapterNameCase) const;
38 int32_t LibCaptureStart(struct AudioHwCapture *hwCapture, struct DevHandle *handleCapture) const;
93 int32_t AudioAlsaLibCaptureTest::CreatHwCapture(struct AudioHwCapture *&hwCapture, in CreatHwCapture() argument
96 hwCapture = static_cast<struct AudioHwCapture *>(calloc(1, sizeof(*hwCapture))); in CreatHwCapture()
97 if (hwCapture == nullptr) { in CreatHwCapture()
100 if (InitHwCapture(hwCapture, adapterNameCase)) { in CreatHwCapture()
101 free(hwCapture); in CreatHwCapture()
102 hwCapture = nullptr; in CreatHwCapture()
107 int32_t AudioAlsaLibCaptureTest::LibCaptureStart(struct AudioHwCapture *hwCapture, in LibCaptureStart() argument
130 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
149 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
170 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
187 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
210 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
232 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
250 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
274 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
298 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
320 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
347 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
366 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
395 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
414 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
447 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
479 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
505 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
540 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
573 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
621 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
666 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
710 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
746 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
772 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
797 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
816 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
837 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
869 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
[all...]
H A Daudio_libcapture_test.cpp41 int32_t BindServiceAndHwCapture(struct AudioHwCapture *&hwCapture, const std::string BindName,
99 int32_t AudioLibCaptureTest::BindServiceAndHwCapture(struct AudioHwCapture *&hwCapture, in BindServiceAndHwCapture() argument
110 hwCapture = static_cast<struct AudioHwCapture *>(calloc(1, sizeof(*hwCapture))); in BindServiceAndHwCapture()
111 if (hwCapture == nullptr) { in BindServiceAndHwCapture()
115 ret = InitHwCapture(hwCapture, adapterNameCase); in BindServiceAndHwCapture()
117 free(hwCapture); in BindServiceAndHwCapture()
118 hwCapture = nullptr; in BindServiceAndHwCapture()
218 struct AudioHwCapture *hwCapture = nullptr; in HWTEST_F() local
221 ret = BindServiceAndHwCapture(hwCapture, BIND_CONTRO in HWTEST_F()
255 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
287 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
331 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
354 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
380 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
411 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
451 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
507 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
538 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
571 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
592 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
[all...]
/drivers/peripheral/audio/test/systemtest/supportlibs/hardwaredependence/capture/src/
H A Daudio_libcapture_hardwaredependence_test.cpp52 int32_t BindServiceAndHwCapture(struct AudioHwCapture *&hwCapture, const std::string BindName,
109 int32_t AudioLibCaptureHardwareDependenceTest::BindServiceAndHwCapture(struct AudioHwCapture *&hwCapture, in BindServiceAndHwCapture() argument
117 hwCapture = static_cast<struct AudioHwCapture *>(calloc(1, sizeof(*hwCapture))); in BindServiceAndHwCapture()
118 if (hwCapture == nullptr) { in BindServiceAndHwCapture()
122 ret = InitHwCapture(hwCapture, adapterNameCase); in BindServiceAndHwCapture()
124 free(hwCapture); in BindServiceAndHwCapture()
125 hwCapture = nullptr; in BindServiceAndHwCapture()
144 struct AudioHwCapture *hwCapture = nullptr; in HWTEST_F() local
145 ret = BindServiceAndHwCapture(hwCapture, BIND_CONTRO in HWTEST_F()
183 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
225 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
258 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
281 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
316 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
362 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
404 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
436 struct AudioHwCapture *hwCapture = nullptr; HWTEST_F() local
[all...]
/drivers/peripheral/audio/hdi_service/primary_impl/src/
H A Daudio_capture.c43 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)handle; in AudioCaptureStart() local
44 if (hwCapture == NULL) { in AudioCaptureStart()
45 AUDIO_FUNC_LOGE("The hwCapture is NULL"); in AudioCaptureStart()
54 if (hwCapture->captureParam.frameCaptureMode.buffer != NULL) { in AudioCaptureStart()
58 if (hwCapture->devDataHandle == NULL) { in AudioCaptureStart()
64 hwCapture->devDataHandle, &hwCapture->captureParam, AUDIO_DRV_PCM_IOCTRL_START_CAPTURE); in AudioCaptureStart()
76 hwCapture->captureParam.frameCaptureMode.buffer = tbuffer; in AudioCaptureStart()
85 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)handle; in AudioCaptureStop() local
86 if (hwCapture in AudioCaptureStop()
121 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)handle; AudioCapturePause() local
163 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)handle; AudioCaptureResume() local
201 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)handle; AudioCaptureFlush() local
212 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)handle; AudioCaptureGetFrameSize() local
234 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)handle; AudioCaptureGetFrameCount() local
247 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)handle; AudioCaptureSetSampleAttributes() local
286 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)handle; AudioCaptureGetSampleAttributes() local
309 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)handle; AudioCaptureGetCurrentChannelId() local
323 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)handle; AudioCaptureCheckSceneCapability() local
361 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)handle; AudioCaptureSelectScene() local
480 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)handle; AudioCaptureSetVolume() local
528 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)handle; AudioCaptureGetVolume() local
570 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)handle; AudioCaptureGetGainThreshold() local
660 LogErrorGetRensonAndTime(struct AudioHwCapture *hwCapture, int errorReason) LogErrorGetRensonAndTime() argument
708 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)handle; LogErrorCapture() local
735 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)capture; AudioCaptureCaptureFrame() local
[all...]
H A Daudio_adapter.c705 static int32_t AudioHwCaptureInit(struct AudioHwCapture *hwCapture) in AudioHwCaptureInit() argument
707 if (hwCapture == NULL) { in AudioHwCaptureInit()
711 hwCapture->common.Start = AudioCaptureStart; in AudioHwCaptureInit()
712 hwCapture->common.Stop = AudioCaptureStop; in AudioHwCaptureInit()
713 hwCapture->common.Pause = AudioCapturePause; in AudioHwCaptureInit()
714 hwCapture->common.Resume = AudioCaptureResume; in AudioHwCaptureInit()
715 hwCapture->common.Flush = AudioCaptureFlush; in AudioHwCaptureInit()
716 hwCapture->common.TurnStandbyMode = AudioCaptureTurnStandbyMode; in AudioHwCaptureInit()
717 hwCapture->common.AudioDevDump = AudioCaptureAudioDevDump; in AudioHwCaptureInit()
718 hwCapture in AudioHwCaptureInit()
741 InitHwCaptureParam(struct AudioHwCapture *hwCapture, const struct AudioDeviceDescriptor *desc, const struct AudioSampleAttributes *attrs) InitHwCaptureParam() argument
785 AudioReleaseCaptureHandle(struct AudioHwCapture *hwCapture) AudioReleaseCaptureHandle() argument
807 AudioAdapterCreateCapturePre(struct AudioHwCapture *hwCapture, const struct AudioDeviceDescriptor *desc, const struct AudioSampleAttributes *attrs, struct AudioHwAdapter *hwAdapter) AudioAdapterCreateCapturePre() argument
863 AudioCtrlCaptureClose(struct AudioHwCapture *hwCapture, InterfaceLibModeCapturePassthrough *pInterfaceLibModeCapture) AudioCtrlCaptureClose() argument
881 AudioAdapterInterfaceLibModeCapture(struct AudioHwCapture *hwCapture) AudioAdapterInterfaceLibModeCapture() argument
932 AudioCaptureBindService(struct AudioHwCapture *hwCapture, BindServiceCapturePassthrough *pBindServiceCapture) AudioCaptureBindService() argument
996 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)OsalMemCalloc(sizeof(*hwCapture)); AudioAdapterCreateCapture() local
1040 struct AudioHwCapture *hwCapture = (struct AudioHwCapture *)capture; AudioAdapterDestroyCapture() local
[all...]
/drivers/peripheral/audio/test/fuzztest/common/src/
H A Daudio_adm_fuzzer_common.cpp135 int32_t InitHwCapture(struct AudioHwCapture *&hwCapture) in InitHwCapture() argument
138 if (hwCapture == nullptr) { in InitHwCapture()
141 if (InitHwCaptureMode(hwCapture->captureParam.captureMode) || in InitHwCapture()
142 InitHwCaptureFramepara(hwCapture->captureParam.frameCaptureMode)) { in InitHwCapture()
145 ret = strcpy_s(hwCapture->captureParam.captureMode.hwInfo.adapterName, in InitHwCapture()
166 int32_t BindServiceAndHwCapture(struct AudioHwCapture *&hwCapture) in BindServiceAndHwCapture() argument
168 hwCapture = reinterpret_cast<struct AudioHwCapture *>(calloc(1, sizeof(*hwCapture))); in BindServiceAndHwCapture()
169 if (hwCapture == nullptr) { in BindServiceAndHwCapture()
172 if (InitHwCapture(hwCapture)) { in BindServiceAndHwCapture()
[all...]
/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audiointerfacelibctlcapturecmdid_fuzzer/
H A Daudiointerfacelibctlcapturecmdid_fuzzer.cpp53 struct AudioHwCapture *hwCapture = nullptr; in AudioInterfacelibctlcaptureCmdidFuzzTest() local
54 (void)BindServiceAndHwCapture(hwCapture); in AudioInterfacelibctlcaptureCmdidFuzzTest()
56 int32_t ret = InterfaceLibCtlCapture(handle, cmdId, &hwCapture->captureParam); in AudioInterfacelibctlcaptureCmdidFuzzTest()
60 free(hwCapture); in AudioInterfacelibctlcaptureCmdidFuzzTest()
/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audiointerfaceliboutputcapturecmdid_fuzzer/
H A Daudiointerfaceliboutputcapturecmdid_fuzzer.cpp53 struct AudioHwCapture *hwCapture = nullptr; in AudioInterfaceliboutputcaptureCmdidFuzzTest() local
54 (void)BindServiceAndHwCapture(hwCapture); in AudioInterfaceliboutputcaptureCmdidFuzzTest()
56 int32_t ret = InterfaceLibOutputCapture(handle, cmdId, &hwCapture->captureParam); in AudioInterfaceliboutputcaptureCmdidFuzzTest()
60 free(hwCapture); in AudioInterfaceliboutputcaptureCmdidFuzzTest()
/drivers/peripheral/audio/test/fuzztest/common/include/
H A Daudio_adm_fuzzer_common.h89 int32_t InitHwCapture(struct AudioHwCapture *&hwCapture);
93 int32_t BindServiceAndHwCapture(struct AudioHwCapture *&hwCapture);
/drivers/peripheral/audio/test/systemtest/common/lib_common/src/
H A Daudio_lib_common.cpp131 uint32_t InitHwCapture(struct AudioHwCapture *&hwCapture, const std::string adapterNameCase) in InitHwCapture() argument
134 if (hwCapture == nullptr) { in InitHwCapture()
137 if (InitHwCaptureMode(hwCapture->captureParam.captureMode) || in InitHwCapture()
138 InitHwCaptureFramepara(hwCapture->captureParam.frameCaptureMode)) { in InitHwCapture()
141 ret = strcpy_s(hwCapture->captureParam.captureMode.hwInfo.adapterName, in InitHwCapture()
/drivers/peripheral/audio/test/systemtest/common/lib_common/include/
H A Daudio_lib_common.h64 uint32_t InitHwCapture(struct AudioHwCapture *&hwCapture, const std::string adapterNameCase);
/drivers/peripheral/audio/hdi_service/primary_impl/include/
H A Daudio_internal.h453 int32_t GetAudioCaptureFunc(struct AudioHwCapture *hwCapture);
454 int32_t InitHwCaptureParam(struct AudioHwCapture *hwCapture, const struct AudioDeviceDescriptor *desc,
456 void AudioReleaseCaptureHandle(struct AudioHwCapture *hwCapture);
457 int32_t AudioAdapterCreateCapturePre(struct AudioHwCapture *hwCapture, const struct AudioDeviceDescriptor *desc,
459 int32_t AudioAdapterInterfaceLibModeCapture(struct AudioHwCapture *hwCapture);
/drivers/peripheral/audio/hal/hdi_passthrough/include/
H A Daudio_internal.h428 int32_t GetAudioCaptureFunc(struct AudioHwCapture *hwCapture);
429 int32_t InitHwCaptureParam(struct AudioHwCapture *hwCapture, const struct AudioDeviceDescriptor *desc,
431 void AudioReleaseCaptureHandle(struct AudioHwCapture *hwCapture);
432 int32_t AudioAdapterCreateCapturePre(struct AudioHwCapture *hwCapture, const struct AudioDeviceDescriptor *desc,
434 int32_t AudioAdapterInterfaceLibModeCapture(struct AudioHwCapture *hwCapture);

Completed in 9 milliseconds