/drivers/peripheral/audio/test/fuzztest/common/src/ |
H A D | audio_adm_fuzzer_common.cpp | 62 frameRenderMode.periodSize = G_PERIODSIZE; in InitRenderFramepara() 68 frameRenderMode.silenceThreshold = frameRenderMode.periodSize * frameRenderMode.periodCount; in InitRenderFramepara() 70 frameRenderMode.startThreshold = frameRenderMode.periodSize; in InitRenderFramepara() 71 frameRenderMode.stopThreshold = frameRenderMode.periodSize * frameRenderMode.periodCount; in InitRenderFramepara() 80 frameCaptureMode.periodSize = G_PERIODSIZE; in InitHwCaptureFramepara() 82 frameCaptureMode.startThreshold = frameCaptureMode.periodSize; in InitHwCaptureFramepara() 83 frameCaptureMode.stopThreshold = frameCaptureMode.periodSize * frameCaptureMode.periodCount; in InitHwCaptureFramepara() 84 frameCaptureMode.silenceThreshold = frameCaptureMode.periodSize * frameCaptureMode.periodCount; in InitHwCaptureFramepara()
|
/drivers/peripheral/audio/test/systemtest/common/lib_common/src/ |
H A D | audio_lib_common.cpp | 47 frameRenderMode.periodSize = G_PERIODSIZE; in InitRenderFramepara() 53 frameRenderMode.silenceThreshold = frameRenderMode.periodSize * frameRenderMode.periodCount; in InitRenderFramepara() 55 frameRenderMode.startThreshold = frameRenderMode.periodSize; in InitRenderFramepara() 56 frameRenderMode.stopThreshold = frameRenderMode.periodSize * frameRenderMode.periodCount; in InitRenderFramepara() 65 frameCaptureMode.periodSize = G_PERIODSIZE; in InitHwCaptureFramepara() 67 frameCaptureMode.startThreshold = frameCaptureMode.periodSize; in InitHwCaptureFramepara() 68 frameCaptureMode.stopThreshold = frameCaptureMode.periodSize * frameCaptureMode.periodCount; in InitHwCaptureFramepara() 69 frameCaptureMode.silenceThreshold = frameCaptureMode.periodSize * frameCaptureMode.periodCount; in InitHwCaptureFramepara()
|
/drivers/peripheral/audio/supportlibs/alsa_adapter/src/ |
H A D | alsa_snd_capture.c | 185 captureIns->periodSize = size;
in SetHWPeriod() 259 if (captureIns->periodSize == 0) {
in SetSWParams() 273 captureIns->periodEvent ? captureIns->bufferSize : captureIns->periodSize);
in SetSWParams() 346 cardIns->hwParams.periodSize = handleData->frameCaptureMode.periodSize;
in SaveHwParams() 483 static int32_t CheckCapFrameBufferSize(struct AudioHwCaptureParam *handleData, snd_pcm_uframes_t *periodSize)
in CheckCapFrameBufferSize() argument 486 CHECK_NULL_PTR_RETURN_DEFAULT(periodSize);
in CheckCapFrameBufferSize() 493 uint64_t capReqBufferSize = capFrameSize * (*periodSize);
in CheckCapFrameBufferSize() 495 *periodSize = FRAME_DATA / capFrameSize;
in CheckCapFrameBufferSize() 676 snd_pcm_uframes_t periodSize in CaptureReadImpl() local [all...] |
H A D | alsa_snd_render.c | 199 renderIns->periodSize = size;
in SetHWParams() 226 if (renderIns->periodSize == 0) {
in SetSWParams() 231 (renderIns->bufferSize / renderIns->periodSize) * renderIns->periodSize);
in SetSWParams() 239 renderIns->periodEvent ? renderIns->bufferSize : renderIns->periodSize);
in SetSWParams() 420 cardIns->hwParams.periodSize = handleData->frameRenderMode.periodSize;
in SaveHwParams()
|
/drivers/peripheral/audio/supportlibs/interfaces/include/ |
H A D | audio_if_lib_common.h | 29 uint32_t periodSize; member
|
/drivers/peripheral/audio/supportlibs/alsa_adapter/include/ |
H A D | alsa_snd_render.h | 33 snd_pcm_sframes_t periodSize;
member
|
H A D | alsa_snd_capture.h | 33 snd_pcm_sframes_t periodSize;
member
|
/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audioadmdispatchercapturecmdid_fuzzer/ |
H A D | audioadmdispatchercapturecmdid_fuzzer.cpp | 30 .streamType = AUDIO_CAPTURE_STREAM, .channels = 2, .rate = 11025, .periodSize = 8192, in AudioAdmDispatcherCaptureCmdidFuzzTest()
|
/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audioadmdispatcherrendercmdid_fuzzer/ |
H A D | audioadmdispatcherrendercmdid_fuzzer.cpp | 31 .rate = BROADCAST_AM_RATE, .periodSize = FRAME_DATA / 2, in AudioAdmDispatcherRenderCmdidFuzzTest()
|
/drivers/peripheral/audio/test/systemtest/common/adm_common/include/ |
H A D | audio_adm_common.h | 75 uint32_t periodSize; member
|
/drivers/hdf_core/framework/model/audio/common/include/ |
H A D | audio_platform_base.h | 43 uint32_t periodSize; /* DMA cache period size */ member
|
/drivers/hdf_core/framework/model/audio/core/include/ |
H A D | audio_host.h | 192 uint32_t periodSize; member
|
/drivers/hdf_core/framework/model/audio/usb/src/ |
H A D | audio_usb_dma_ops.c | 608 audioUsbDriver->renderBufInfo.periodSize = data->renderBufInfo.periodSize / data->renderPcmInfo.frameSize; in AudioUsbDmaConfigChannel() 614 audioUsbDriver->captureBufInfo.periodSize = data->captureBufInfo.periodSize / data->capturePcmInfo.frameSize; in AudioUsbDmaConfigChannel() 975 if (audioUsbDriver->renderTransferDone >= audioUsbDriver->renderBufInfo.periodSize) { in AudioUsbUpdataEndpointPacket() 976 audioUsbDriver->renderTransferDone -= audioUsbDriver->renderBufInfo.periodSize; in AudioUsbUpdataEndpointPacket()
|
H A D | audio_usb_endpoints.c | 746 framesPerPeriod = bufInfo->periodSize / pcmInfo->frameSize; in AudioUsbDataEpSetParamsSub() 747 periodBytes = bufInfo->periodSize; in AudioUsbDataEpSetParamsSub() 835 framesPerPeriod = bufInfo->periodSize / pcmInfo->frameSize; in AudioUsbSetRenderEpParams() 836 periodBytes = bufInfo->periodSize; in AudioUsbSetRenderEpParams() 934 periodBytes = bufInfo->periodSize; in AudioUsbDataEpSetParams()
|
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/ |
H A D | audio_render.cpp | 294 uint32_t periodSize = impl->renderParam.frameRenderMode.periodSize; in AudioRenderGetLatency() local 299 uint32_t periodMs = (periodCount * periodSize * 1000) / byteRate; in AudioRenderGetLatency()
|
H A D | audio_adapter.cpp | 223 hwRender->renderParam.frameRenderMode.periodSize = DEEP_BUFFER_RENDER_PERIOD_SIZE; in InitHwRenderParam()
|
/drivers/peripheral/audio/hdi_service/primary_impl/include/ |
H A D | audio_internal.h | 149 uint32_t periodSize; member 280 uint32_t periodSize; member
|
/drivers/hdf_core/framework/model/audio/common/src/ |
H A D | audio_platform_base.c | 196 AUDIO_DRIVER_LOG_ERR("periodSize is invalid %d.", param->period); in AudioSetRenderBufInfo() 199 data->renderBufInfo.periodSize = param->period * data->renderPcmInfo.bitWidth * in AudioSetRenderBufInfo() 204 size = data->renderBufInfo.periodCount * data->renderBufInfo.periodSize; in AudioSetRenderBufInfo() 222 AUDIO_DRIVER_LOG_ERR("periodSize is invalid %d.", param->period); in AudioSetCaptureBufInfo() 225 data->captureBufInfo.periodSize = param->period * data->capturePcmInfo.bitWidth * in AudioSetCaptureBufInfo() 235 data->captureBufInfo.cirBufSize = data->captureBufInfo.periodSize * data->captureBufInfo.periodCount; in AudioSetCaptureBufInfo()
|
/drivers/peripheral/audio/hal/hdi_passthrough/include/ |
H A D | audio_internal.h | 156 uint32_t periodSize; member 284 uint32_t periodSize; member
|
/drivers/peripheral/audio/test/systemtest/common/adm_common/src/ |
H A D | audio_adm_common.cpp | 56 if (!HdfSbufWriteUint32(sBuf, hwParams.periodSize)) { in WriteHwParamsToBuf()
|
/drivers/peripheral/audio/hdi_service/primary_impl/src/ |
H A D | audio_render.c | 721 uint32_t periodSize = impl->renderParam.frameRenderMode.periodSize; in AudioRenderGetLatency() local 728 *ms = (periodSize * SEC_TO_MILLSEC) / (byteRate * RENDER_2_CHS * PCM_16_BIT / PCM_8_BIT); in AudioRenderGetLatency()
|
H A D | audio_adapter.c | 295 hwRender->renderParam.frameRenderMode.periodSize = DEEP_BUFFER_RENDER_PERIOD_SIZE; in InitHwRenderParam() 773 hwCapture->captureParam.frameCaptureMode.periodSize = DEEP_BUFFER_RENDER_PERIOD_SIZE; in InitHwCaptureParam()
|
/drivers/peripheral/audio/supportlibs/adm_adapter/src/ |
H A D | audio_interface_lib_render.c | 43 g_hwParams.periodSize = handleData->frameRenderMode.periodSize; in SetHwParams() 774 if (!HdfSbufWriteUint32(sBuf, g_hwParams.periodSize) || in ParamsSbufWriteBuffer()
|
H A D | audio_interface_lib_capture.c | 46 g_hwParams.periodSize = handleData->frameCaptureMode.periodSize; in SetHwParamsCapture() 74 if (!HdfSbufWriteUint32(sBuf, g_hwParams.periodSize)) { in ParamsSbufWriteBuffer()
|
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/include/ |
H A D | audio_internal.h | 198 uint32_t periodSize; member
|