/drivers/peripheral/audio/test/systemtest/common/adm_common/src/ |
D | audio_adm_common.cpp | 42 int32_t WriteHwParamsToBuf(struct HdfSBuf *sBuf, struct AudioPcmHwParams hwParams) in WriteHwParamsToBuf() argument 47 if (!HdfSbufWriteUint32(sBuf, (uint32_t)hwParams.streamType)) { in WriteHwParamsToBuf() 50 if (!HdfSbufWriteUint32(sBuf, hwParams.channels)) { in WriteHwParamsToBuf() 53 if (!HdfSbufWriteUint32(sBuf, hwParams.rate)) { in WriteHwParamsToBuf() 56 if (!HdfSbufWriteUint32(sBuf, hwParams.periodSize)) { in WriteHwParamsToBuf() 59 if (!HdfSbufWriteUint32(sBuf, hwParams.periodCount)) { in WriteHwParamsToBuf() 62 if (!HdfSbufWriteUint32(sBuf, (uint32_t)(hwParams.format))) { in WriteHwParamsToBuf() 65 if (!HdfSbufWriteString(sBuf, hwParams.cardServiceName)) { in WriteHwParamsToBuf() 68 if (!HdfSbufWriteUint32(sBuf, hwParams.period)) { in WriteHwParamsToBuf() 71 if (!HdfSbufWriteUint32(sBuf, hwParams.frameSize)) { in WriteHwParamsToBuf() [all …]
|
/drivers/peripheral/audio/test/systemtest/adm/audio_adm_interface/src/ |
D | audio_adm_interface_test.cpp | 154 struct AudioPcmHwParams hwParams { struct 169 ret = WriteHwParamsToBuf(sBuf, hwParams); 189 struct AudioPcmHwParams hwParams { struct 204 ret = WriteHwParamsToBuf(sBuf, hwParams); 771 struct AudioPcmHwParams hwParams { struct 776 ret = WriteHwParams(HDF_RENDER_SERVICE, service, hwParams); 790 struct AudioPcmHwParams hwParams { struct 795 ret = WriteHwParams(HDF_RENDER_SERVICE, service, hwParams); 809 struct AudioPcmHwParams hwParams { struct 814 ret = WriteHwParams(HDF_RENDER_SERVICE, service, hwParams); [all …]
|
/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audioadmdispatchercapturecmdid_fuzzer/ |
D | audioadmdispatchercapturecmdid_fuzzer.cpp | 29 struct AudioPcmHwParams hwParams { in AudioAdmDispatcherCaptureCmdidFuzzTest() struct 45 int32_t ret = WriteHwParamsToBuf(sBuf, hwParams); in AudioAdmDispatcherCaptureCmdidFuzzTest()
|
/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audioadmdispatcherrendercmdid_fuzzer/ |
D | audioadmdispatcherrendercmdid_fuzzer.cpp | 29 struct AudioPcmHwParams hwParams { in AudioAdmDispatcherRenderCmdidFuzzTest() struct 46 int32_t ret = WriteHwParamsToBuf(sBuf, hwParams); in AudioAdmDispatcherRenderCmdidFuzzTest()
|
/drivers/peripheral/audio/test/systemtest/common/adm_common/include/ |
D | audio_adm_common.h | 94 int32_t WriteHwParamsToBuf(struct HdfSBuf *sBuf, struct AudioPcmHwParams hwParams); 106 …HwParams(std::string serviceName, struct HdfIoService *&service, struct AudioPcmHwParams hwParams);
|
/drivers/peripheral/audio/supportlibs/alsa_adapter/src/ |
D | alsa_lib_render.c | 615 …snd_pcm_t *handle, snd_pcm_hw_params_t *params, struct AudioPcmHwParams hwParams, snd_pcm_access_t… in SetHWParamsSub() argument 637 ret = CheckParaFormat(hwParams, &pcmFormat); in SetHWParamsSub() 650 ret = snd_pcm_hw_params_set_channels(handle, params, hwParams.channels); in SetHWParamsSub() 652 …FUNC_LOGE("Channels count (%{public}u) not available for playbacks: %{public}s", hwParams.channels, in SetHWParamsSub() 693 …snd_pcm_t *handle, snd_pcm_hw_params_t *params, struct AudioPcmHwParams hwParams, snd_pcm_access_t… in SetHWParams() argument 709 if (SetHWParamsSub(handle, params, hwParams, access) < 0) { in SetHWParams() 713 if (SetHWRate(handle, params, &(hwParams.rate)) < 0) { in SetHWParams() 804 snd_pcm_hw_params_t *hwParams = NULL; in AudioResetParams() local 812 snd_pcm_hw_params_alloca(&hwParams); in AudioResetParams() 814 ret = SetHWParams(handle, hwParams, audioHwParams, access); in AudioResetParams() [all …]
|
D | alsa_lib_capture.c | 802 snd_pcm_hw_params_t *hwParams = NULL; in AudioOutputCaptureHwParams() local 830 snd_pcm_hw_params_alloca(&hwParams); in AudioOutputCaptureHwParams() 832 …ret = SetHWParams(cardIns->capturePcmHandle, hwParams, cardIns->hwCaptureParams, SND_PCM_ACCESS_RW… in AudioOutputCaptureHwParams() 903 snd_pcm_hw_params_t *hwParams = NULL; in AudioCaptureResetParams() local 911 snd_pcm_hw_params_alloca(&hwParams); in AudioCaptureResetParams() 913 ret = SetHWParams(handle, hwParams, audioHwParams, access); in AudioCaptureResetParams()
|
D | alsa_lib_common.c | 952 int32_t CheckParaFormat(struct AudioPcmHwParams hwParams, snd_pcm_format_t *alsaPcmFormat) in CheckParaFormat() argument 958 enum AudioFormat audioFormat = hwParams.format; in CheckParaFormat() 959 bool isBigEndian = hwParams.isBigEndian; in CheckParaFormat()
|
/drivers/peripheral/audio/supportlibs/alsa_adapter/include/ |
D | alsa_lib_common.h | 130 int32_t CheckParaFormat(struct AudioPcmHwParams hwParams, snd_pcm_format_t *alsaPcmFormat);
|