Home
last modified time | relevance | path

Searched refs:hwParams (Results 1 – 9 of 9) sorted by relevance

/drivers/peripheral/audio/test/systemtest/common/adm_common/src/
Daudio_adm_common.cpp42 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/
Daudio_adm_interface_test.cpp154 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/
Daudioadmdispatchercapturecmdid_fuzzer.cpp29 struct AudioPcmHwParams hwParams { in AudioAdmDispatcherCaptureCmdidFuzzTest() struct
45 int32_t ret = WriteHwParamsToBuf(sBuf, hwParams); in AudioAdmDispatcherCaptureCmdidFuzzTest()
/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audioadmdispatcherrendercmdid_fuzzer/
Daudioadmdispatcherrendercmdid_fuzzer.cpp29 struct AudioPcmHwParams hwParams { in AudioAdmDispatcherRenderCmdidFuzzTest() struct
46 int32_t ret = WriteHwParamsToBuf(sBuf, hwParams); in AudioAdmDispatcherRenderCmdidFuzzTest()
/drivers/peripheral/audio/test/systemtest/common/adm_common/include/
Daudio_adm_common.h94 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/
Dalsa_lib_render.c615 …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 …]
Dalsa_lib_capture.c802 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()
Dalsa_lib_common.c952 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/
Dalsa_lib_common.h130 int32_t CheckParaFormat(struct AudioPcmHwParams hwParams, snd_pcm_format_t *alsaPcmFormat);