Home
last modified time | relevance | path

Searched refs:volume (Results 1 – 25 of 64) sorted by relevance

123

/drivers/peripheral/audio/hdi_service/primary_impl/vendor_include/include/
Di_audio_volume.h82 int32_t (*SetVolume)(AudioHandle handle, float volume);
92 int32_t (*GetVolume)(AudioHandle handle, float *volume);
Di_audio_capture.h72 struct AudioHwiVolume volume; member
/drivers/peripheral/audio/interfaces/include/
Daudio_volume.h82 int32_t (*SetVolume)(AudioHandle handle, float volume);
92 int32_t (*GetVolume)(AudioHandle handle, float *volume);
Daudio_capture.h72 struct AudioVolume volume; member
Daudio_render.h72 struct AudioVolume volume; member
/drivers/peripheral/audio/interfaces/2.0/include/
Daudio_volume.h82 int32_t (*SetVolume)(AudioHandle handle, float volume);
92 int32_t (*GetVolume)(AudioHandle handle, float *volume);
Daudio_capture.h73 struct AudioVolume volume; member
/drivers/peripheral/bluetooth/audio/interfaces/include/
Daudio_volume.h82 int32_t (*SetVolume)(AudioHandle handle, float volume);
92 int32_t (*GetVolume)(AudioHandle handle, float *volume);
/drivers/peripheral/audio/test/systemtest/hdi_service/common/capture/src/
Daudio_idl_hdicapture_volume_test.cpp255 float volume = 0; variable
259 ret = capture->SetVolume(captureNull, volume);
270 float volume = 0.60; variable
274 ret = capture->SetVolume(capture, volume);
276 ret = capture->GetVolume(capture, &volume);
278 EXPECT_EQ(defaultVolume, volume);
288 float volume = 0.60; variable
294 ret = capture->SetVolume(capture, volume);
296 ret = capture->GetVolume(capture, &volume);
298 EXPECT_EQ(defaultVolume, volume);
[all …]
/drivers/peripheral/audio/test/systemtest/hdi_service/common/render/src/
Daudio_idl_hdirender_volume_test.cpp491 float volume = 0; variable
495 ret = render->SetVolume(renderNull, volume);
506 float volume = 0.30; variable
510 ret = render->SetVolume(render, volume);
512 ret = render->GetVolume(render, &volume);
514 EXPECT_EQ(volumeDefault, volume);
524 float volume = 0.30; variable
531 ret = render->SetVolume(render, volume);
533 ret = render->GetVolume(render, &volume);
535 EXPECT_EQ(defaultVolume, volume);
[all …]
/drivers/peripheral/audio/hal/hdi_binder/server/src/
Dhdf_audio_server_capture.c513 if (capture == NULL || capture->volume.GetMute == NULL) { in HdiServiceCaptureGetMute()
517 ret = capture->volume.GetMute((AudioHandle)capture, &mute); in HdiServiceCaptureGetMute()
547 if (capture == NULL || capture->volume.SetMute == NULL) { in HdiServiceCaptureSetMute()
551 return capture->volume.SetMute((AudioHandle)capture, mute); in HdiServiceCaptureSetMute()
561 uint32_t volume = 0; in HdiServiceCaptureSetVolume() local
567 if (!HdfSbufReadUint32(data, &volume)) { in HdiServiceCaptureSetVolume()
570 float setVolume = (float)volume / VOLUME_CHANGE; in HdiServiceCaptureSetVolume()
571 if (capture == NULL || capture->volume.SetVolume == NULL) { in HdiServiceCaptureSetVolume()
575 return capture->volume.SetVolume((AudioHandle)capture, setVolume); in HdiServiceCaptureSetVolume()
585 float volume; in HdiServiceCaptureGetVolume() local
[all …]
Dhdf_audio_server_render.c515 if (render == NULL || render->volume.GetMute == NULL) { in HdiServiceRenderGetMute()
519 ret = render->volume.GetMute((AudioHandle)render, &mute); in HdiServiceRenderGetMute()
547 if (render == NULL || render->volume.SetMute == NULL) { in HdiServiceRenderSetMute()
551 return render->volume.SetMute((AudioHandle)render, mute); in HdiServiceRenderSetMute()
560 uint32_t volume = 0; in HdiServiceRenderSetVolume() local
566 if (!HdfSbufReadUint32(data, &volume)) { in HdiServiceRenderSetVolume()
569 float setVolume = (float)volume / VOLUME_CHANGE; in HdiServiceRenderSetVolume()
570 if (render == NULL || render->volume.SetVolume == NULL) { in HdiServiceRenderSetVolume()
574 return render->volume.SetVolume((AudioHandle)render, setVolume); in HdiServiceRenderSetVolume()
583 float volume; in HdiServiceRenderGetVolume() local
[all …]
/drivers/peripheral/audio/hdi_service/primary_impl/vendor_src/
Daudio_capture_vendor.c169 CHECK_NULL_PTR_RETURN_VALUE(hwiCapture->volume.SetMute, HDF_ERR_INVALID_PARAM); in AudioHwiCaptureSetMute()
171 int32_t ret = hwiCapture->volume.SetMute(hwiCapture, mute); in AudioHwiCaptureSetMute()
188 CHECK_NULL_PTR_RETURN_VALUE(hwiCapture->volume.GetMute, HDF_ERR_INVALID_PARAM); in AudioHwiCaptureGetMute()
190 int32_t ret = hwiCapture->volume.GetMute(hwiCapture, mute); in AudioHwiCaptureGetMute()
199 int32_t AudioHwiCaptureSetVolume(struct IAudioCapture *capture, float volume) in AudioHwiCaptureSetVolume() argument
206 CHECK_NULL_PTR_RETURN_VALUE(hwiCapture->volume.SetVolume, HDF_ERR_INVALID_PARAM); in AudioHwiCaptureSetVolume()
208 int32_t ret = hwiCapture->volume.SetVolume(hwiCapture, volume); in AudioHwiCaptureSetVolume()
217 int32_t AudioHwiCaptureGetVolume(struct IAudioCapture *capture, float *volume) in AudioHwiCaptureGetVolume() argument
220 CHECK_NULL_PTR_RETURN_VALUE(volume, HDF_ERR_INVALID_PARAM); in AudioHwiCaptureGetVolume()
225 CHECK_NULL_PTR_RETURN_VALUE(hwiCapture->volume.GetVolume, HDF_ERR_INVALID_PARAM); in AudioHwiCaptureGetVolume()
[all …]
Daudio_render_vendor.c289 CHECK_NULL_PTR_RETURN_VALUE(hwiRender->volume.SetMute, HDF_ERR_INVALID_PARAM); in AudioHwiRenderSetMute()
291 int32_t ret = hwiRender->volume.SetMute(hwiRender, mute); in AudioHwiRenderSetMute()
307 CHECK_NULL_PTR_RETURN_VALUE(hwiRender->volume.GetMute, HDF_ERR_INVALID_PARAM); in AudioHwiRenderGetMute()
309 int32_t ret = hwiRender->volume.GetMute(hwiRender, mute); in AudioHwiRenderGetMute()
317 int32_t AudioHwiRenderSetVolume(struct IAudioRender *render, float volume) in AudioHwiRenderSetVolume() argument
324 CHECK_NULL_PTR_RETURN_VALUE(hwiRender->volume.SetVolume, HDF_ERR_INVALID_PARAM); in AudioHwiRenderSetVolume()
326 int32_t ret = hwiRender->volume.SetVolume(hwiRender, volume); in AudioHwiRenderSetVolume()
334 int32_t AudioHwiRenderGetVolume(struct IAudioRender *render, float *volume) in AudioHwiRenderGetVolume() argument
337 CHECK_NULL_PTR_RETURN_VALUE(volume, HDF_ERR_INVALID_PARAM); in AudioHwiRenderGetVolume()
342 CHECK_NULL_PTR_RETURN_VALUE(hwiRender->volume.GetVolume, HDF_ERR_INVALID_PARAM); in AudioHwiRenderGetVolume()
[all …]
/drivers/peripheral/audio/test/systemtest/supportlibs/hardwaredependence/capture/src/
Daudio_libcapture_hardwaredependence_test.cpp154 hwCapture->captureParam.captureMode.ctlParam.volume = volumeThresholdValueMax - 1;
159 volumeValue = hwCapture->captureParam.captureMode.ctlParam.volume;
162 hwCapture->captureParam.captureMode.ctlParam.volume = volumeThresholdValueMin + 1;
167 volumeValue = hwCapture->captureParam.captureMode.ctlParam.volume;
196 hwCapture->captureParam.captureMode.ctlParam.volume = volumeThresholdValueMin;
201 volumeValue = hwCapture->captureParam.captureMode.ctlParam.volume;
204 hwCapture->captureParam.captureMode.ctlParam.volume = volumeThresholdValueMax;
209 volumeValue = hwCapture->captureParam.captureMode.ctlParam.volume;
237 hwCapture->captureParam.captureMode.ctlParam.volume = volumeThresholdValueMax + 1;
240 hwCapture->captureParam.captureMode.ctlParam.volume = volumeThresholdValueMin - 1;
/drivers/interface/audio/v1_0/
DIAudioAdapter.idl199 * @brief Sets the audio volume for voice call.
201 … * The volume ranges from 0.0 to 1.0. If the volume level in an audio service ranges from 0 to 15,
202 …* <b>0.0</b> indicates that the audio is muted, and <b>1.0</b> indicates the maximum volume level …
205 * @param volume Indicates the volume to set. The value ranges from 0.0 to 1.0.
209 SetVoiceVolume([in] float volume);
222 * EVENT_TYPE indicates sub volume event type: SetVolume = 1; SetMute = 4;
223 * VOLUME_GROUP_ID indicates which volume group will be set;
224 * AUDIO_VOLUME_TYPE indicates which volume type will be set;
242 …* EVENT_TYPE indicates sub volume event type: GetVolume = 1; GetMinVolume = 2; GetMaxVolume = 3; I…
243 * VOLUME_GROUP_ID indicates which volume group want get;
[all …]
DIAudioCapture.idl38 * scenes, and volume, and capturing audio frames.
123 * @brief Sets the audio volume.
125 … * The volume ranges from 0.0 to 1.0. If the volume level in an audio service ranges from 0 to 15,
126 …* <b>0.0</b> indicates that the audio is muted, and <b>1.0</b> indicates the maximum volume level …
129 * @param volume Indicates the volume to set. The value ranges from 0.0 to 1.0.
133 SetVolume([in] float volume);
136 * @brief Obtains the audio volume.
139 … * @param volume Indicates the pointer to the volume to obtain. The value ranges from 0.0 to 1.0.
140 * @return Returns <b>0</b> if the volume is obtained; returns a negative value otherwise.
143 GetVolume([out] float volume);
/drivers/peripheral/audio/test/systemtest/supportlibs/hardwaredependence/render/src/
Daudio_librender_hardwaredependence_test.cpp171 hwRender->renderParam.renderMode.ctlParam.volume = volumeThresholdValueMaxIn - 1;
176 volumeValue = hwRender->renderParam.renderMode.ctlParam.volume;
179 hwRender->renderParam.renderMode.ctlParam.volume = volumeThresholdValueMinIn + 1;
184 volumeValue = hwRender->renderParam.renderMode.ctlParam.volume;
186 hwRender->renderParam.renderMode.ctlParam.volume = volumeBoundaryValueIn;
191 volumeValue = hwRender->renderParam.renderMode.ctlParam.volume;
218 hwRender->renderParam.renderMode.ctlParam.volume = volumeThresholdValueMinIn;
223 volumeValue = hwRender->renderParam.renderMode.ctlParam.volume;
226 hwRender->renderParam.renderMode.ctlParam.volume = volumeThresholdValueMaxIn;
231 volumeValue = hwRender->renderParam.renderMode.ctlParam.volume;
[all …]
/drivers/peripheral/bluetooth/audio/hal/hdi_binder/server/src/
Dhdf_audio_server_render.cpp433 ret = render->volume.GetMute((AudioHandle)render, &mute); in HdiServiceRenderGetMute()
461 return render->volume.SetMute((AudioHandle)render, mute); in HdiServiceRenderSetMute()
470 uint32_t volume = 0; in HdiServiceRenderSetVolume() local
476 if (!HdfSbufReadUint32(data, &volume)) { in HdiServiceRenderSetVolume()
479 float setVolume = (float)volume / VOLUME_CHANGE; in HdiServiceRenderSetVolume()
480 return render->volume.SetVolume((AudioHandle)render, setVolume); in HdiServiceRenderSetVolume()
489 float volume; in HdiServiceRenderGetVolume() local
495 ret = render->volume.GetVolume((AudioHandle)render, &volume); in HdiServiceRenderGetVolume()
499 uint32_t tempVolume = (uint32_t)(volume * VOLUME_CHANGE); in HdiServiceRenderGetVolume()
518 ret = render->volume.GetGainThreshold((AudioHandle)render, &min, &max); in HdiServiceRenderGetGainThreshold()
[all …]
/drivers/peripheral/audio/interfaces/sound/v1_0/
Diaudio_capture_vdi.h38 int32_t (*SetVolume)(struct IAudioCaptureVdi *self, float volume);
39 int32_t (*GetVolume)(struct IAudioCaptureVdi *self, float *volume);
Diaudio_render_vdi.h47 int32_t (*SetVolume)(struct IAudioRenderVdi *self, float volume);
48 int32_t (*GetVolume)(struct IAudioRenderVdi *self, float *volume);
/drivers/peripheral/audio/hdi_service/primary_impl/src/
Daudio_capture.c463 int32_t AudioCaptureSetVolume(struct IAudioCapture *handle, float volume) in AudioCaptureSetVolume() argument
471 float volumeTemp = hwCapture->captureParam.captureMode.ctlParam.volume; in AudioCaptureSetVolume()
478 if (volume < 0 || volume > 1) { in AudioCaptureSetVolume()
489 volume = (volume == 0) ? 1 : (volume * VOLUME_CHANGE); in AudioCaptureSetVolume()
492 float volTemp = ((volMax - volMin) / 2) * log10(volume) + volMin; in AudioCaptureSetVolume()
498 hwCapture->captureParam.captureMode.ctlParam.volume = volTemp; in AudioCaptureSetVolume()
504 hwCapture->captureParam.captureMode.ctlParam.volume = volumeTemp; in AudioCaptureSetVolume()
510 int32_t AudioCaptureGetVolume(struct IAudioCapture *handle, float *volume) in AudioCaptureGetVolume() argument
513 if (hwCapture == NULL || volume == NULL) { in AudioCaptureGetVolume()
536 float volumeTemp = hwCapture->captureParam.captureMode.ctlParam.volume; in AudioCaptureGetVolume()
[all …]
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
Daudio_adapter.cpp53 hwRender->common.volume.SetMute = AudioRenderSetMute; in GetAudioRenderFunc()
54 hwRender->common.volume.GetMute = AudioRenderGetMute; in GetAudioRenderFunc()
55 hwRender->common.volume.SetVolume = AudioRenderSetVolume; in GetAudioRenderFunc()
56 hwRender->common.volume.GetVolume = AudioRenderGetVolume; in GetAudioRenderFunc()
57 hwRender->common.volume.GetGainThreshold = AudioRenderGetGainThreshold; in GetAudioRenderFunc()
58 hwRender->common.volume.GetGain = AudioRenderGetGain; in GetAudioRenderFunc()
59 hwRender->common.volume.SetGain = AudioRenderSetGain; in GetAudioRenderFunc()
/drivers/peripheral/bluetooth/audio/hal/hdi_binder/proxy/include/
Daudio_proxy_internal.h52 int32_t AudioProxyRenderSetVolume(const AudioHandle handle, float volume);
53 int32_t AudioProxyRenderGetVolume(const AudioHandle handle, float *volume);
/drivers/peripheral/audio/test/systemtest/supportlibs/common/capture/src/
Daudio_alsa_libcapture_test.cpp586 hwCapture->captureParam.captureMode.ctlParam.volume = volumeThresholdValueMax - 1;
591 volumeValue = hwCapture->captureParam.captureMode.ctlParam.volume;
594 hwCapture->captureParam.captureMode.ctlParam.volume = volumeThresholdValueMin + 1;
599 volumeValue = hwCapture->captureParam.captureMode.ctlParam.volume;
601 hwCapture->captureParam.captureMode.ctlParam.volume = volumeBoundaryValue;
606 volumeValue = hwCapture->captureParam.captureMode.ctlParam.volume;
638 hwCapture->captureParam.captureMode.ctlParam.volume = volumeThresholdValueMin;
643 volumeValue = hwCapture->captureParam.captureMode.ctlParam.volume;
646 hwCapture->captureParam.captureMode.ctlParam.volume = volumeThresholdValueMax;
651 volumeValue = hwCapture->captureParam.captureMode.ctlParam.volume;
[all …]

123