/ohos5.0/drivers/peripheral/audio/test/systemtest/common/lib_common/src/ |
H A D | audio_lib_common.cpp | 165 if (frameCaptureMode.mmapBufDesc.memoryAddress == NULL || in CaptureReqMmapBufferInit() 170 frameCaptureMode.mmapBufDesc.totalBufferFrames = fileSize / in CaptureReqMmapBufferInit() 172 frameCaptureMode.mmapBufDesc.memoryFd = fd; in CaptureReqMmapBufferInit() 174 frameCaptureMode.mmapBufDesc.isShareable = 1; in CaptureReqMmapBufferInit() 175 frameCaptureMode.mmapBufDesc.offset = 0; in CaptureReqMmapBufferInit() 199 frameRenderMode.mmapBufDesc.memoryAddress = mmap(NULL, fileSize, PROT_READ, in RenderReqMmapBufferInit() 201 if (frameRenderMode.mmapBufDesc.memoryAddress == NULL || in RenderReqMmapBufferInit() 206 frameRenderMode.mmapBufDesc.totalBufferFrames = fileSize / in RenderReqMmapBufferInit() 208 frameRenderMode.mmapBufDesc.memoryFd = fd; in RenderReqMmapBufferInit() 210 frameRenderMode.mmapBufDesc.isShareable = 1; in RenderReqMmapBufferInit() [all …]
|
/ohos5.0/drivers/peripheral/audio/supportlibs/alsa_adapter/src/ |
H A D | alsa_snd_render.c | 608 struct AudioMmapBufferDescriptor *mmapBufDesc = NULL; in RenderWriteiMmap() local 624 mmapBufDesc = (struct AudioMmapBufferDescriptor *)&(handleData->frameRenderMode.mmapBufDesc); in RenderWriteiMmap() 625 uint32_t totalSize = (uint32_t)mmapBufDesc->totalBufferFrames * frameSize; in RenderWriteiMmap() 633 cardIns->pcmHandle, (char *)mmapBufDesc->memoryAddress + mmapBufDesc->offset, frames); in RenderWriteiMmap() 648 mmapBufDesc->offset += copyLen; in RenderWriteiMmap()
|
H A D | alsa_snd_capture.c | 746 char *mmapAddr = (char *)handleData->frameCaptureMode.mmapBufDesc.memoryAddress; in CaptureMmapReadImpl() 751 …snd_pcm_uframes_t size = (snd_pcm_sframes_t)handleData->frameCaptureMode.mmapBufDesc.totalBufferFr… in CaptureMmapReadImpl()
|
/ohos5.0/drivers/peripheral/audio/test/unittest/supportlibs/interface_lib_render/src/ |
H A D | audio_alsa_if_lib_render_test.cpp | 564 handleData->frameRenderMode.mmapBufDesc.totalBufferFrames = mmapFrameData / frameSize; 566 handleData->frameRenderMode.mmapBufDesc.memoryAddress = mmapBufferFrames ; 569 …(void)memcpy_s(handleData->frameRenderMode.mmapBufDesc.memoryAddress, mmapFrameData, mmapBuffer, m… 594 handleData->frameRenderMode.mmapBufDesc.totalBufferFrames = mmapFrameData / mmapFrameSize; 599 handleData->frameRenderMode.mmapBufDesc.memoryAddress = mmapBuffer ; 602 …(void)memcpy_s(handleData->frameRenderMode.mmapBufDesc.memoryAddress, mmapFrameData, mmapBuffer, m…
|
/ohos5.0/drivers/peripheral/audio/test/unittest/supportlibs/interface_lib_capture/src/ |
H A D | audio_alsa_if_lib_capture_test.cpp | 497 handleData->frameCaptureMode.mmapBufDesc.totalBufferFrames = capMmapFrameData / capFrameSize; 499 handleData->frameCaptureMode.mmapBufDesc.memoryAddress = mmapBufferFrameSize ; 506 handleData->frameCaptureMode.mmapBufDesc.memoryAddress = nullptr; 528 handleData->frameCaptureMode.mmapBufDesc.totalBufferFrames = capMmapFrameData / mmapFrameSize; 529 handleData->frameCaptureMode.mmapBufDesc.memoryAddress = mmapBuffer ;
|
/ohos5.0/drivers/peripheral/audio/supportlibs/adm_adapter/src/ |
H A D | audio_interface_lib_capture.c | 1010 … uint64_t mmapAddr = (uint64_t)(uintptr_t)(handleData->frameCaptureMode.mmapBufDesc.memoryAddress); in MmapDescWriteBufferCapture() 1024 if (!HdfSbufWriteInt32(sBuf, handleData->frameCaptureMode.mmapBufDesc.memoryFd)) { in MmapDescWriteBufferCapture() 1029 if (!HdfSbufWriteInt32(sBuf, handleData->frameCaptureMode.mmapBufDesc.totalBufferFrames)) { in MmapDescWriteBufferCapture() 1034 if (!HdfSbufWriteInt32(sBuf, handleData->frameCaptureMode.mmapBufDesc.transferFrameSize)) { in MmapDescWriteBufferCapture() 1039 if (!HdfSbufWriteInt32(sBuf, handleData->frameCaptureMode.mmapBufDesc.isShareable)) { in MmapDescWriteBufferCapture() 1044 if (!HdfSbufWriteUint32(sBuf, handleData->frameCaptureMode.mmapBufDesc.offset)) { in MmapDescWriteBufferCapture()
|
H A D | audio_interface_lib_render.c | 1059 … uint64_t mmapAddr = (uint64_t)(uintptr_t)(handleData->frameRenderMode.mmapBufDesc.memoryAddress); in MmapDescWriteBuffer() 1068 if (!HdfSbufWriteInt32(sBuf, handleData->frameRenderMode.mmapBufDesc.memoryFd)) { in MmapDescWriteBuffer() 1072 if (!HdfSbufWriteInt32(sBuf, handleData->frameRenderMode.mmapBufDesc.totalBufferFrames)) { in MmapDescWriteBuffer() 1076 if (!HdfSbufWriteInt32(sBuf, handleData->frameRenderMode.mmapBufDesc.transferFrameSize)) { in MmapDescWriteBuffer() 1080 if (!HdfSbufWriteInt32(sBuf, handleData->frameRenderMode.mmapBufDesc.isShareable)) { in MmapDescWriteBuffer() 1084 if (!HdfSbufWriteUint32(sBuf, handleData->frameRenderMode.mmapBufDesc.offset)) { in MmapDescWriteBuffer()
|
/ohos5.0/drivers/peripheral/audio/hal/hdi_passthrough/include/ |
H A D | audio_internal.h | 169 struct AudioMmapBufferDescriptor mmapBufDesc; member 293 struct AudioMmapBufferDescriptor mmapBufDesc; member
|
/ohos5.0/drivers/peripheral/audio/hdi_service/primary_impl/include/ |
H A D | audio_internal.h | 163 struct AudioMmapBufferDescriptor mmapBufDesc; member 289 struct AudioMmapBufferDescriptor mmapBufDesc; member
|
/ohos5.0/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/include/ |
H A D | audio_internal.h | 209 struct AudioMmapBufferDescriptor mmapBufDesc; member
|
/ohos5.0/drivers/peripheral/audio/test/systemtest/supportlibs/common/capture/src/ |
H A D | audio_alsa_libcapture_test.cpp | 883 munmap(hwCapture->captureParam.frameCaptureMode.mmapBufDesc.memoryAddress, FILE_CAPTURE_SIZE);
|
/ohos5.0/drivers/peripheral/audio/test/systemtest/supportlibs/common/render/src/ |
H A D | audio_alsa_librender_test.cpp | 996 munmap(hwRender->renderParam.frameRenderMode.mmapBufDesc.memoryAddress, fileSize);
|