Home
last modified time | relevance | path

Searched refs:volMax (Results 1 – 22 of 22) sorted by relevance

/ohos5.0/drivers/peripheral/audio/hdi_service/primary_impl/src/
H A Daudio_capture.c487 float volMax = (float)hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMax; in AudioCaptureSetVolume() local
507 float volTemp = ((volMax - volMin) / 2) * log10(volume) + volMin; in AudioCaptureSetVolume()
508 if (volTemp < volMin || volTemp > volMax) { in AudioCaptureSetVolume()
553 float volMax = (float)hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMax; in AudioCaptureGetVolume() local
555 if ((volMax - volMin) == 0) { in AudioCaptureGetVolume()
559 volumeTemp = (volumeTemp - volMin) / ((volMax - volMin) / VOLUME_AVERAGE); in AudioCaptureGetVolume()
H A Daudio_render.c539 float volMax = (float)hwRender->renderParam.renderMode.ctlParam.volThreshold.volMax; in AudioRenderSetVolume() local
558 float volTemp = ((volMax - volMin) / 2) * log10(volume) + volMin; in AudioRenderSetVolume()
559 if (volTemp < volMin || volTemp > volMax) { in AudioRenderSetVolume()
602 float volMax = (float)hwRender->renderParam.renderMode.ctlParam.volThreshold.volMax; in AudioRenderGetVolume() local
604 if ((volMax - volMin) == 0) { in AudioRenderGetVolume()
609 volumeTemp = (volumeTemp - volMin) / ((volMax - volMin) / VOLUME_AVERAGE); in AudioRenderGetVolume()
/ohos5.0/drivers/peripheral/audio/supportlibs/alsa_adapter/src/
H A Dalsa_lib_capture.c206 long volMax = MIN_VOLUME; in AudioCtlCaptureGetVolThreshold() local
214 ret = captureIns->GetVolThreshold(captureIns, &volMin, &volMax); in AudioCtlCaptureGetVolThreshold()
218 handleData->captureMode.ctlParam.volThreshold.volMax = (int)volMax; in AudioCtlCaptureGetVolThreshold()
H A Dalsa_lib_render.c207 long volMax = MIN_VOLUME; in AudioCtlRenderGetVolThreshold() local
214 ret = renderIns->GetVolThreshold(renderIns, &volMin, &volMax); in AudioCtlRenderGetVolThreshold()
220 handleData->renderMode.ctlParam.volThreshold.volMax = (int)volMax; in AudioCtlRenderGetVolThreshold()
H A Dalsa_snd_capture.c799 …atic int32_t CaptureGetVolThresholdImpl(struct AlsaCapture *captureIns, long *volMin, long *volMax) in CaptureGetVolThresholdImpl() argument
H A Dalsa_snd_render.c788 static int32_t RenderGetVolThresholdImpl(struct AlsaRender *renderIns, long *volMin, long *volMax) in RenderGetVolThresholdImpl() argument
/ohos5.0/drivers/peripheral/audio/test/systemtest/supportlibs/hardwaredependence/capture/src/
H A Daudio_libcapture_hardwaredependence_test.cpp150 volumeThresholdValueMax = hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMax;
192 volumeThresholdValueMax = hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMax;
233 volumeThresholdValueMax = hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMax;
264 volumeThresholdValueMax = hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMax;
/ohos5.0/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/include/
H A Daudio_render_interface_impl_base.h50 virtual void SetVolumeRangeInner(const uint32_t volMax, const uint32_t volMin) = 0;
H A Daudio_render_ext_impl.h87 void SetVolumeRangeInner(const uint32_t volMax, const uint32_t volMin) override;
H A Daudio_render_interface_impl.h91 void SetVolumeRangeInner(const uint32_t volMax, const uint32_t volMin) override;
/ohos5.0/drivers/peripheral/audio/test/systemtest/supportlibs/hardwaredependence/render/src/
H A Daudio_librender_hardwaredependence_test.cpp166 volumeThresholdValueMaxIn = hwRender->renderParam.renderMode.ctlParam.volThreshold.volMax;
213 volumeThresholdValueMaxIn = hwRender->renderParam.renderMode.ctlParam.volThreshold.volMax;
254 volumeThresholdValueMaxIn = hwRender->renderParam.renderMode.ctlParam.volThreshold.volMax;
287 volumeThresholdValueMaxIn = hwRender->renderParam.renderMode.ctlParam.volThreshold.volMax;
/ohos5.0/drivers/peripheral/audio/test/unittest/supportlibs/interface_lib_render/src/
H A Daudio_alsa_if_lib_render_test.cpp27 constexpr int32_t volMax = 100; variable
198 int32_t volumeMax = handleData->renderMode.ctlParam.volThreshold.volMax;
200 EXPECT_EQ(volMax, volumeMax);
225 EXPECT_LE(vol, volMax);
/ohos5.0/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/src/
H A Daudio_render_interface_impl.cpp471 void AudioRenderInterfaceImpl::SetVolumeRangeInner(const uint32_t volMax, const uint32_t volMin) in SetVolumeRangeInner() argument
475 volMax_ = volMax; in SetVolumeRangeInner()
H A Daudio_render_ext_impl.cpp501 void AudioRenderExtImpl::SetVolumeRangeInner(const uint32_t volMax, const uint32_t volMin) in SetVolumeRangeInner() argument
505 volMax_ = volMax; in SetVolumeRangeInner()
/ohos5.0/drivers/peripheral/audio/test/systemtest/supportlibs/common/capture/src/
H A Daudio_alsa_libcapture_test.cpp549 volumeThresholdValueMax = hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMax;
582 volumeThresholdValueMax = hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMax;
634 volumeThresholdValueMax = hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMax;
679 volumeThresholdValueMax = hwCapture->captureParam.captureMode.ctlParam.volThreshold.volMax;
/ohos5.0/drivers/peripheral/audio/test/systemtest/supportlibs/common/render/src/
H A Daudio_alsa_librender_test.cpp634 volumeThresholdValueMax = hwRender->renderParam.renderMode.ctlParam.volThreshold.volMax;
666 volumeThresholdValueMax = hwRender->renderParam.renderMode.ctlParam.volThreshold.volMax;
717 volumeThresholdValueMax = hwRender->renderParam.renderMode.ctlParam.volThreshold.volMax;
761 volumeThresholdValueMax = hwRender->renderParam.renderMode.ctlParam.volThreshold.volMax;
/ohos5.0/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/include/
H A Daudio_internal.h220 int volMax; member
/ohos5.0/drivers/peripheral/audio/hal/hdi_passthrough/include/
H A Daudio_internal.h180 int volMax; member
/ohos5.0/drivers/peripheral/audio/hdi_service/primary_impl/include/
H A Daudio_internal.h174 int volMax; member
/ohos5.0/drivers/peripheral/audio/test/unittest/supportlibs/interface_lib_capture/src/
H A Daudio_alsa_if_lib_capture_test.cpp194 int32_t volumeMax = handleData->captureMode.ctlParam.volThreshold.volMax;
/ohos5.0/drivers/peripheral/audio/supportlibs/adm_adapter/src/
H A Daudio_interface_lib_capture.c686 handleData->captureMode.ctlParam.volThreshold.volMax = volThreshold.max; in AudioCtlCaptureGetVolThreshold()
H A Daudio_interface_lib_render.c611 handleData->renderMode.ctlParam.volThreshold.volMax = volThreshold.max; in AudioCtlRenderGetVolThreshold()