/drivers/peripheral/audio/test/systemtest/supportlibs/common/render/src/ |
D | audio_alsa_librender_test.cpp | 41 struct AudioHeadInfo wavHeadInfo, struct AudioHwRender *hwRender) const; 42 int32_t LibRenderStart(struct AudioHwRender *hwRender, struct DevHandle *handlerender) const; 43 int32_t CreatHwRender(struct AudioHwRender *&hwRender, const std::string adapterNameCase) const; 121 struct AudioHeadInfo wavHeadInfo, struct AudioHwRender *hwRender) const in FrameLibStart() 123 if (hwRender == nullptr) { in FrameLibStart() 132 hwRender->renderParam.frameRenderMode.buffer = static_cast<char *>(calloc(1, bufferSize)); in FrameLibStart() 133 if (hwRender->renderParam.frameRenderMode.buffer == nullptr) { in FrameLibStart() 138 numRead = fread(hwRender->renderParam.frameRenderMode.buffer, readSize, 1, file); in FrameLibStart() 140 free(hwRender->renderParam.frameRenderMode.buffer); in FrameLibStart() 141 hwRender->renderParam.frameRenderMode.buffer = nullptr; in FrameLibStart() [all …]
|
D | audio_librender_test.cpp | 42 struct AudioHeadInfo wavHeadInfo, struct AudioHwRender *hwRender) const; 44 … struct DevHandle *handle, struct AudioHwRender *hwRender, struct AudioHeadInfo wavHeadInfo) const; 45 int32_t LibHwOutputRender(struct AudioHwRender *hwRender, struct DevHandle *handlerender) const; 46 int32_t BindServiceAndHwRender(struct AudioHwRender *&hwRender, 121 struct AudioHeadInfo wavHeadInfo, struct AudioHwRender *hwRender) const in FrameLibStart() 123 if (hwRender == nullptr) { in FrameLibStart() 132 hwRender->renderParam.frameRenderMode.buffer = static_cast<char *>(calloc(1, bufferSize)); in FrameLibStart() 133 if (hwRender->renderParam.frameRenderMode.buffer == nullptr) { in FrameLibStart() 138 numRead = fread(hwRender->renderParam.frameRenderMode.buffer, readSize, 1, file); in FrameLibStart() 140 free(hwRender->renderParam.frameRenderMode.buffer); in FrameLibStart() [all …]
|
/drivers/peripheral/audio/test/systemtest/supportlibs/hardwaredependence/render/src/ |
D | audio_librender_hardwaredependence_test.cpp | 53 int32_t LibHwOutputRender(struct AudioHwRender *hwRender, struct DevHandle *handlerender) const; 54 int32_t BindServiceAndHwRender(struct AudioHwRender *&hwRender, 112 int32_t AudioLibRenderHardwareDependenceTest::LibHwOutputRender(struct AudioHwRender *hwRender, in LibHwOutputRender() argument 115 if (hwRender == nullptr || handlerender == nullptr) { in LibHwOutputRender() 118 …if (InterfaceLibOutputRender(handlerender, AUDIO_DRV_PCM_IOCTRL_RENDER_OPEN, &hwRender->renderPara… in LibHwOutputRender() 119 … InterfaceLibOutputRender(handlerender, AUDIO_DRV_PCM_IOCTL_HW_PARAMS, &hwRender->renderParam) || in LibHwOutputRender() 120 … InterfaceLibOutputRender(handlerender, AUDIO_DRV_PCM_IOCTL_PREPARE, &hwRender->renderParam) || in LibHwOutputRender() 121 … InterfaceLibOutputRender(handlerender, AUDIO_DRV_PCM_IOCTRL_START, &hwRender->renderParam)) { in LibHwOutputRender() 127 …t32_t AudioLibRenderHardwareDependenceTest::BindServiceAndHwRender(struct AudioHwRender *&hwRender, in BindServiceAndHwRender() argument 135 hwRender = static_cast<struct AudioHwRender *>(calloc(1, sizeof(*hwRender))); in BindServiceAndHwRender() [all …]
|
/drivers/peripheral/audio/hdi_service/primary_impl/src/ |
D | audio_render.c | 79 struct AudioHwRender *hwRender = (struct AudioHwRender *)handle; in AudioRenderStart() local 80 if (hwRender == NULL) { in AudioRenderStart() 90 pthread_mutex_lock(&hwRender->renderParam.frameRenderMode.mutex); in AudioRenderStart() 91 if (hwRender->renderParam.frameRenderMode.buffer != NULL) { in AudioRenderStart() 92 pthread_mutex_unlock(&hwRender->renderParam.frameRenderMode.mutex); in AudioRenderStart() 96 if (hwRender->devDataHandle == NULL) { in AudioRenderStart() 97 pthread_mutex_unlock(&hwRender->renderParam.frameRenderMode.mutex); in AudioRenderStart() 103 …(*pInterfaceLibModeRender)(hwRender->devDataHandle, &hwRender->renderParam, AUDIO_DRV_PCM_IOCTRL_S… in AudioRenderStart() 105 pthread_mutex_unlock(&hwRender->renderParam.frameRenderMode.mutex); in AudioRenderStart() 112 pthread_mutex_unlock(&hwRender->renderParam.frameRenderMode.mutex); in AudioRenderStart() [all …]
|
D | audio_adapter.c | 39 static int32_t AudioHwRenderInit(struct AudioHwRender *hwRender) in AudioHwRenderInit() argument 41 if (hwRender == NULL) { in AudioHwRenderInit() 45 hwRender->common.Start = AudioRenderStart; in AudioHwRenderInit() 46 hwRender->common.Stop = AudioRenderStop; in AudioHwRenderInit() 47 hwRender->common.Pause = AudioRenderPause; in AudioHwRenderInit() 48 hwRender->common.Resume = AudioRenderResume; in AudioHwRenderInit() 49 hwRender->common.Flush = AudioRenderFlush; in AudioHwRenderInit() 50 hwRender->common.TurnStandbyMode = AudioRenderTurnStandbyMode; in AudioHwRenderInit() 51 hwRender->common.AudioDevDump = AudioRenderAudioDevDump; in AudioHwRenderInit() 52 hwRender->common.GetFrameSize = AudioRenderGetFrameSize; in AudioHwRenderInit() [all …]
|
/drivers/peripheral/bluetooth/audio/hal/hdi_binder/proxy/src/ |
D | audio_proxy_render.cpp | 23 struct AudioHwRender *hwRender = reinterpret_cast<struct AudioHwRender *>(handle); in AudioProxyRenderCtrl() local 24 if (hwRender == NULL || hwRender->proxyRemoteHandle == NULL) { in AudioProxyRenderCtrl() 28 if (AudioProxyPreprocessRender(hwRender, &data, &reply) < 0) { in AudioProxyRenderCtrl() 31 int32_t ret = AudioProxyDispatchCall(hwRender->proxyRemoteHandle, cmId, data, reply); in AudioProxyRenderCtrl() 62 struct AudioHwRender *hwRender = reinterpret_cast<struct AudioHwRender *>(handle); in AudioProxyRenderFlush() local 63 if (hwRender == NULL) { in AudioProxyRenderFlush() 77 struct AudioHwRender *hwRender = reinterpret_cast<struct AudioHwRender *>(handle); in AudioProxyRenderGetFrameParameter() local 78 if (hwRender == NULL || hwRender->proxyRemoteHandle == NULL) { in AudioProxyRenderGetFrameParameter() 82 if (AudioProxyPreprocessRender(hwRender, &data, &reply) < 0) { in AudioProxyRenderGetFrameParameter() 85 ret = AudioProxyDispatchCall(hwRender->proxyRemoteHandle, cmId, data, reply); in AudioProxyRenderGetFrameParameter() [all …]
|
D | audio_proxy_adapter.cpp | 106 int32_t GetAudioProxyRenderFunc(struct AudioHwRender *hwRender) in GetAudioProxyRenderFunc() argument 108 if (hwRender == NULL) { in GetAudioProxyRenderFunc() 111 hwRender->common.control.Start = AudioProxyRenderStart; in GetAudioProxyRenderFunc() 112 hwRender->common.control.Stop = AudioProxyRenderStop; in GetAudioProxyRenderFunc() 113 hwRender->common.control.Pause = AudioProxyRenderPause; in GetAudioProxyRenderFunc() 114 hwRender->common.control.Resume = AudioProxyRenderResume; in GetAudioProxyRenderFunc() 115 hwRender->common.control.Flush = AudioProxyRenderFlush; in GetAudioProxyRenderFunc() 116 hwRender->common.control.TurnStandbyMode = AudioProxyRenderTurnStandbyMode; in GetAudioProxyRenderFunc() 117 hwRender->common.control.AudioDevDump = AudioProxyRenderAudioDevDump; in GetAudioProxyRenderFunc() 118 hwRender->common.attr.GetFrameSize = AudioProxyRenderGetFrameSize; in GetAudioProxyRenderFunc() [all …]
|
D | audio_proxy_common.cpp | 76 struct AudioHwRender *hwRender = render; in AudioProxyPreprocessRender() local 77 if (hwRender == NULL || data == NULL || reply == NULL) { in AudioProxyPreprocessRender() 81 const char *adapterName = hwRender->renderParam.renderMode.hwInfo.adapterName; in AudioProxyPreprocessRender() 205 struct AudioHwRender *hwRender = reinterpret_cast<struct AudioHwRender *>(handle); in AudioProxyCommonSetRenderCtrlParam() local 206 if (hwRender == NULL || hwRender->proxyRemoteHandle == NULL) { in AudioProxyCommonSetRenderCtrlParam() 221 if (AudioProxyPreprocessRender(hwRender, &data, &reply) < 0) { in AudioProxyCommonSetRenderCtrlParam() 229 int32_t ret = AudioProxyDispatchCall(hwRender->proxyRemoteHandle, cmId, data, reply); in AudioProxyCommonSetRenderCtrlParam() 242 struct AudioHwRender *hwRender = reinterpret_cast<struct AudioHwRender *>(handle); in AudioProxyCommonGetRenderCtrlParam() local 243 if (hwRender == NULL || hwRender->proxyRemoteHandle == NULL) { in AudioProxyCommonGetRenderCtrlParam() 247 if (AudioProxyPreprocessRender(hwRender, &data, &reply) < 0) { in AudioProxyCommonGetRenderCtrlParam() [all …]
|
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/ |
D | audio_adapter.cpp | 30 int32_t GetAudioRenderFunc(struct AudioHwRender *hwRender) in GetAudioRenderFunc() argument 32 if (hwRender == NULL) { in GetAudioRenderFunc() 35 hwRender->common.control.Start = AudioRenderStart; in GetAudioRenderFunc() 36 hwRender->common.control.Stop = AudioRenderStop; in GetAudioRenderFunc() 37 hwRender->common.control.Pause = AudioRenderPause; in GetAudioRenderFunc() 38 hwRender->common.control.Resume = AudioRenderResume; in GetAudioRenderFunc() 39 hwRender->common.control.Flush = AudioRenderFlush; in GetAudioRenderFunc() 40 hwRender->common.control.TurnStandbyMode = AudioRenderTurnStandbyMode; in GetAudioRenderFunc() 41 hwRender->common.control.AudioDevDump = AudioRenderAudioDevDump; in GetAudioRenderFunc() 42 hwRender->common.attr.GetFrameSize = AudioRenderGetFrameSize; in GetAudioRenderFunc() [all …]
|
D | audio_render.cpp | 45 struct AudioHwRender *hwRender = reinterpret_cast<struct AudioHwRender *>(handle); in AudioRenderStart() local 46 if (hwRender == NULL) { in AudioRenderStart() 49 if (hwRender->renderParam.frameRenderMode.buffer != NULL) { in AudioRenderStart() 66 hwRender->renderParam.frameRenderMode.buffer = buffer; in AudioRenderStart() 73 struct AudioHwRender *hwRender = reinterpret_cast<struct AudioHwRender *>(handle); in AudioRenderStop() local 74 if (hwRender == NULL) { in AudioRenderStop() 77 if (hwRender->renderParam.frameRenderMode.buffer != NULL) { in AudioRenderStop() 78 AudioMemFree(reinterpret_cast<void **>(&hwRender->renderParam.frameRenderMode.buffer)); in AudioRenderStop() 93 hwRender->renderParam.renderMode.ctlParam.pause = false; in AudioRenderStop() 99 struct AudioHwRender *hwRender = reinterpret_cast<struct AudioHwRender *>(handle); in AudioRenderPause() local [all …]
|
/drivers/peripheral/audio/test/fuzztest/common/src/ |
D | audio_adm_fuzzer_common.cpp | 116 int32_t InitHwRender(struct AudioHwRender *&hwRender) in InitHwRender() argument 119 if (hwRender == nullptr) { in InitHwRender() 122 if (InitHwRenderMode(hwRender->renderParam.renderMode) || in InitHwRender() 123 InitRenderFramepara(hwRender->renderParam.frameRenderMode)) { in InitHwRender() 126 hwRender->renderParam.renderMode.hwInfo.card = AUDIO_SERVICE_IN; in InitHwRender() 127 ret = strcpy_s(hwRender->renderParam.renderMode.hwInfo.adapterName, in InitHwRender() 153 int32_t BindServiceAndHwRender(struct AudioHwRender *&hwRender) in BindServiceAndHwRender() argument 155 hwRender = reinterpret_cast<struct AudioHwRender *>(calloc(1, sizeof(*hwRender))); in BindServiceAndHwRender() 156 if (hwRender == nullptr) { in BindServiceAndHwRender() 159 if (InitHwRender(hwRender)) { in BindServiceAndHwRender() [all …]
|
/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audiointerfacelibctlrendercmdid_fuzzer/ |
D | audiointerfacelibctlrendercmdid_fuzzer.cpp | 53 struct AudioHwRender *hwRender = nullptr; in AudioInterfacelibctlrenderCmdidFuzzTest() local 54 (void)BindServiceAndHwRender(hwRender); in AudioInterfacelibctlrenderCmdidFuzzTest() 55 hwRender->renderParam.renderMode.hwInfo.card = AUDIO_SERVICE_IN; in AudioInterfacelibctlrenderCmdidFuzzTest() 57 int32_t ret = InterfaceLibCtlRender(handle, cmdId, &hwRender->renderParam); in AudioInterfacelibctlrenderCmdidFuzzTest() 61 free(hwRender); in AudioInterfacelibctlrenderCmdidFuzzTest()
|
/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audiointerfaceliboutputrendercmdid_fuzzer/ |
D | audiointerfaceliboutputrendercmdid_fuzzer.cpp | 53 struct AudioHwRender *hwRender = nullptr; in AudioInterfaceliboutputrenderCmdidFuzzTest() local 54 int32_t ret = BindServiceAndHwRender(hwRender); in AudioInterfaceliboutputrenderCmdidFuzzTest() 56 InterfaceLibOutputRender(handle, cmdId, &hwRender->renderParam); in AudioInterfaceliboutputrenderCmdidFuzzTest() 60 free(hwRender); in AudioInterfaceliboutputrenderCmdidFuzzTest()
|
/drivers/peripheral/audio/test/fuzztest/common/include/ |
D | audio_adm_fuzzer_common.h | 87 int32_t InitHwRender(struct AudioHwRender *&hwRender); 91 int32_t BindServiceAndHwRender(struct AudioHwRender *&hwRender);
|
/drivers/peripheral/audio/test/systemtest/common/lib_common/src/ |
D | audio_lib_common.cpp | 112 uint32_t InitHwRender(struct AudioHwRender *&hwRender, const std::string adapterNameCase) in InitHwRender() argument 115 if (hwRender == nullptr) { in InitHwRender() 118 if (InitHwRenderMode(hwRender->renderParam.renderMode) || in InitHwRender() 119 InitRenderFramepara(hwRender->renderParam.frameRenderMode)) { in InitHwRender() 122 hwRender->renderParam.renderMode.hwInfo.card = AUDIO_SERVICE_IN; in InitHwRender() 123 ret = strcpy_s(hwRender->renderParam.renderMode.hwInfo.adapterName, in InitHwRender()
|
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/include/ |
D | audio_internal.h | 335 int32_t GetAudioRenderFunc(struct AudioHwRender *hwRender); 339 int32_t InitHwRenderParam(struct AudioHwRender *hwRender, const struct AudioDeviceDescriptor *desc, 344 void AudioReleaseRenderHandle(struct AudioHwRender *hwRender); 345 int32_t AudioAdapterCreateRenderPre(struct AudioHwRender *hwRender, const struct AudioDeviceDescrip… 347 int32_t AudioAdapterBindServiceRender(struct AudioHwRender *hwRender);
|
/drivers/peripheral/audio/test/systemtest/common/lib_common/include/ |
D | audio_lib_common.h | 62 uint32_t InitHwRender(struct AudioHwRender *&hwRender, const std::string adapterNameCase);
|
/drivers/peripheral/audio/hal/hdi_passthrough/include/ |
D | audio_internal.h | 412 int32_t GetAudioRenderFunc(struct AudioHwRender *hwRender); 416 int32_t InitHwRenderParam(struct AudioHwRender *hwRender, const struct AudioDeviceDescriptor *desc, 421 void AudioReleaseRenderHandle(struct AudioHwRender *hwRender); 422 int32_t AudioAdapterCreateRenderPre(struct AudioHwRender *hwRender, const struct AudioDeviceDescrip… 424 int32_t AudioAdapterBindServiceRender(struct AudioHwRender *hwRender);
|
/drivers/peripheral/audio/hdi_service/primary_impl/include/ |
D | audio_internal.h | 441 int32_t InitHwRenderParam(struct AudioHwRender *hwRender, const struct AudioDeviceDescriptor *desc, 446 void AudioReleaseRenderHandle(struct AudioHwRender *hwRender); 447 int32_t AudioAdapterCreateRenderPre(struct AudioHwRender *hwRender, const struct AudioDeviceDescrip… 449 int32_t AudioAdapterBindServiceRender(struct AudioHwRender *hwRender);
|