Home
last modified time | relevance | path

Searched refs:gain (Results 1 - 25 of 55) sorted by relevance

123

/drivers/peripheral/audio/interfaces/include/
H A Daudio_volume.h43 * set the mute operation, volume, and gain.
95 * @brief Obtains the range of the audio gain.
97 * The audio gain can be expressed in one of the following two ways (depending on the chip platform),
100 * <li>Actual audio gain values, for example, ranging from -50 to 6 dB</li>
102 * and <b>1.0</b> means the maximum gain value, for example, 6 dB</li>
114 * @brief Obtains the audio gain.
117 * @param gain Indicates the pointer to the audio gain.
118 * @return Returns <b>0</b> if the audio gain is obtained; returns a negative value otherwise.
122 int32_t (*GetGain)(AudioHandle handle, float *gain);
[all...]
/drivers/peripheral/distributed_audio/interface/audio/v1_0/
H A Di_audio_volume.h33 virtual int32_t SetGain(const float gain) = 0;
35 virtual int32_t GetGain(float &gain) = 0;
/drivers/peripheral/audio/test/systemtest/hdi_service/common/render/src/
H A Daudio_idl_hdirender_volume_test.cpp129 * @tc.desc Test RenderSetGain interface,return 0 if Set gain to normal value, maximum or minimum and get success
136 float gain = 10.8; in HWTEST_F() local
137 ret = render->SetGain(render, gain); in HWTEST_F()
139 ret = render->GetGain(render, &gain); in HWTEST_F()
143 EXPECT_LE(gainExpc, gain); in HWTEST_F()
168 * @tc.desc Test RenderSetGain interface,return -3 if Set gain to exceed the boundary value
191 * @tc.desc Test RenderSetGain interface,return -1 if set gain to exception type
197 char gain = 'a'; in HWTEST_F() local
200 ret = render->SetGain(render, gain); in HWTEST_F()
212 float gain in HWTEST_F() local
234 float gain = min + 1; HWTEST_F() local
250 float gain = 0; HWTEST_F() local
265 float gain = GAIN_MAX - 1; HWTEST_F() local
[all...]
/drivers/peripheral/audio/interfaces/2.0/include/
H A Daudio_volume.h43 * set the mute operation, volume, and gain.
95 * @brief Obtains the range of the audio gain.
97 * The audio gain can be expressed in one of the following two ways (depending on the chip platform),
100 * <li>Actual audio gain values, for example, ranging from -50 to 6 dB</li>
102 * and <b>1.0</b> means the maximum gain value, for example, 6 dB</li>
114 * @brief Obtains the audio gain.
117 * @param gain Indicates the pointer to the audio gain.
118 * @return Returns <b>0</b> if the audio gain is obtained; returns a negative value otherwise.
122 int32_t (*GetGain)(AudioHandle handle, float *gain);
[all...]
/drivers/peripheral/bluetooth/audio/interfaces/include/
H A Daudio_volume.h43 * set the mute operation, volume, and gain.
95 * @brief Obtains the range of the audio gain.
97 * The audio gain can be expressed in one of the following two ways (depending on the chip platform),
100 * <li>Actual audio gain values, for example, ranging from -50 to 6 dB</li>
102 * and <b>1.0</b> means the maximum gain value, for example, 6 dB</li>
114 * @brief Obtains the audio gain.
117 * @param gain Indicates the pointer to the audio gain.
118 * @return Returns <b>0</b> if the audio gain is obtained; returns a negative value otherwise.
122 int32_t (*GetGain)(AudioHandle handle, float *gain);
[all...]
/drivers/peripheral/audio/test/systemtest/hdi_service/common/capture/src/
H A Daudio_idl_hdicapture_volume_test.cpp397 float gain = max - 1; in HWTEST_F() local
415 ret = capture->SetGain(capture, gain); in HWTEST_F()
417 ret = capture->GetGain(capture, &gain); in HWTEST_F()
419 EXPECT_EQ(gainExpc, gain); in HWTEST_F()
424 * @tc.desc test AudioCaptureSetGain interface, return -3 if gain greater than the maximum and less than the minimum
453 float gain = 0; in HWTEST_F() local
457 ret = capture->SetGain(captureNull, gain); in HWTEST_F()
474 float gain = min + 1; in HWTEST_F() local
476 ret = capture->SetGain(capture, gain); in HWTEST_F()
478 ret = capture->GetGain(capture, &gain); in HWTEST_F()
504 float gain = GAIN_MAX - 1; HWTEST_F() local
[all...]
/drivers/peripheral/audio/test/systemtest/supportlibs/hardwaredependence/capture/src/
H A Daudio_libcapture_hardwaredependence_test.cpp327 hwCapture->captureParam.captureMode.ctlParam.audioGain.gain = gainThresholdValueMax - 1; in HWTEST_F()
332 gainValue = hwCapture->captureParam.captureMode.ctlParam.audioGain.gain; in HWTEST_F()
334 hwCapture->captureParam.captureMode.ctlParam.audioGain.gain = gainThresholdValueMin + 1; in HWTEST_F()
339 gainValue = hwCapture->captureParam.captureMode.ctlParam.audioGain.gain; in HWTEST_F()
341 hwCapture->captureParam.captureMode.ctlParam.audioGain.gain = 2.3; in HWTEST_F()
346 gainValue = hwCapture->captureParam.captureMode.ctlParam.audioGain.gain; in HWTEST_F()
376 hwCapture->captureParam.captureMode.ctlParam.audioGain.gain = gainThresholdValueMax; in HWTEST_F()
381 gainValue = hwCapture->captureParam.captureMode.ctlParam.audioGain.gain; in HWTEST_F()
383 hwCapture->captureParam.captureMode.ctlParam.audioGain.gain = gainThresholdValueMin; in HWTEST_F()
388 gainValue = hwCapture->captureParam.captureMode.ctlParam.audioGain.gain; in HWTEST_F()
[all...]
/drivers/peripheral/audio/test/hal_mock/
H A Daudio_render_mock.c215 static int32_t GetGain(struct IAudioRenderVdi* render, float *gain) in GetGain() argument
217 if (render == NULL || gain == NULL) { in GetGain()
221 (void *)gain; in GetGain()
226 static int32_t SetGain(struct IAudioRenderVdi* render, float gain) in SetGain() argument
232 (void)gain; in SetGain()
/drivers/peripheral/audio/test/systemtest/supportlibs/hardwaredependence/render/src/
H A Daudio_librender_hardwaredependence_test.cpp449 hwRender->renderParam.renderMode.ctlParam.audioGain.gain = gainThresholdValueMax - 1; in HWTEST_F()
454 gainValue = hwRender->renderParam.renderMode.ctlParam.audioGain.gain; in HWTEST_F()
456 hwRender->renderParam.renderMode.ctlParam.audioGain.gain = gainThresholdValueMin + 1; in HWTEST_F()
461 gainValue = hwRender->renderParam.renderMode.ctlParam.audioGain.gain; in HWTEST_F()
463 hwRender->renderParam.renderMode.ctlParam.audioGain.gain = 2.3; in HWTEST_F()
468 gainValue = hwRender->renderParam.renderMode.ctlParam.audioGain.gain; in HWTEST_F()
495 hwRender->renderParam.renderMode.ctlParam.audioGain.gain = gainThresholdValueMin; in HWTEST_F()
500 gainValue = hwRender->renderParam.renderMode.ctlParam.audioGain.gain; in HWTEST_F()
502 hwRender->renderParam.renderMode.ctlParam.audioGain.gain = gainThresholdValueMax; in HWTEST_F()
507 gainValue = hwRender->renderParam.renderMode.ctlParam.audioGain.gain; in HWTEST_F()
[all...]
/drivers/hdf_core/framework/model/camera/parser/include/
H A Dcamera_config_parser.h43 uint8_t gain; member
57 uint8_t gain; member
/drivers/peripheral/audio/interfaces/sound/v1_0/
H A Diaudio_render_vdi.h50 int32_t (*GetGain)(struct IAudioRenderVdi *self, float *gain);
51 int32_t (*SetGain)(struct IAudioRenderVdi *self, float gain);
H A Diaudio_capture_vdi.h42 int32_t (*GetGain)(struct IAudioCaptureVdi *self, float *gain);
43 int32_t (*SetGain)(struct IAudioCaptureVdi *self, float gain);
/drivers/peripheral/bluetooth/audio/hal/hdi_binder/proxy/include/
H A Daudio_proxy_internal.h55 int32_t AudioProxyRenderGetGain(const AudioHandle handle, float *gain);
56 int32_t AudioProxyRenderSetGain(const AudioHandle handle, float gain);
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/include/
H A Dfast_audio_render.h41 int32_t FastRenderGetGain(AudioHandle handle, float *gain);
42 int32_t FastRenderSetGain(AudioHandle handle, float gain);
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
H A Dfast_audio_render.cpp193 int32_t FastRenderGetGain(AudioHandle handle, float *gain) in FastRenderGetGain() argument
197 (void)gain; in FastRenderGetGain()
201 int32_t FastRenderSetGain(AudioHandle handle, float gain) in FastRenderSetGain() argument
205 (void)gain; in FastRenderSetGain()
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/src/
H A Daudio_capture_ext_impl.cpp227 DHLOGI("Get gain threshold, not support yet."); in GetGainThreshold()
233 int32_t AudioCaptureExtImpl::SetGain(float gain) in SetGain() argument
235 DHLOGI("Set gain, not support yet."); in SetGain()
236 (void) gain; in SetGain()
240 int32_t AudioCaptureExtImpl::GetGain(float &gain) in GetGain() argument
242 DHLOGI("Get gain, not support yet."); in GetGain()
243 gain = 1.0; in GetGain()
H A Daudio_capture_interface_impl.cpp265 DHLOGI("Get gain threshold, not support yet."); in GetGainThreshold()
271 int32_t AudioCaptureInterfaceImpl::SetGain(float gain) in SetGain() argument
273 DHLOGI("Set gain, not support yet."); in SetGain()
274 (void)gain; in SetGain()
278 int32_t AudioCaptureInterfaceImpl::GetGain(float &gain) in GetGain() argument
280 DHLOGI("Get gain, not support yet."); in GetGain()
281 gain = 1.0; in GetGain()
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/include/
H A Dcamera_common.h72 uint8_t gain; member
84 uint8_t gain; member
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/include/
H A Daudio_capture_ext_impl.h55 int32_t GetGain(float &gain) override;
56 int32_t SetGain(float gain) override;
H A Daudio_capture_interface_impl.h53 int32_t GetGain(float &gain) override;
54 int32_t SetGain(float gain) override;
/drivers/peripheral/audio/hdi_service/primary_impl/include/
H A Daudio_internal.h167 float gain; member
489 int32_t AudioRenderGetGain(struct IAudioRender *handle, float *gain);
490 int32_t AudioRenderSetGain(struct IAudioRender *handle, float gain);
526 int32_t AudioCaptureGetGain(struct IAudioCapture *handle, float *gain);
527 int32_t AudioCaptureSetGain(struct IAudioCapture *handle, float gain);
/drivers/peripheral/audio/hdi_service/primary_impl/src/
H A Daudio_render.c647 int32_t AudioRenderGetGain(struct IAudioRender *handle, float *gain) in AudioRenderGetGain() argument
651 if (impl == NULL || gain == NULL) { in AudioRenderGetGain()
673 *gain = impl->renderParam.renderMode.ctlParam.audioGain.gain; in AudioRenderGetGain()
677 int32_t AudioRenderSetGain(struct IAudioRender *handle, float gain) in AudioRenderSetGain() argument
682 if (impl == NULL || gain < 0) { in AudioRenderSetGain()
687 float gainTemp = impl->renderParam.renderMode.ctlParam.audioGain.gain; in AudioRenderSetGain()
688 impl->renderParam.renderMode.ctlParam.audioGain.gain = gain; in AudioRenderSetGain()
691 impl->renderParam.renderMode.ctlParam.audioGain.gain in AudioRenderSetGain()
[all...]
H A Daudio_capture.c598 int32_t AudioCaptureGetGain(struct IAudioCapture *handle, float *gain) in AudioCaptureGetGain() argument
601 if (impl == NULL || gain == NULL) { in AudioCaptureGetGain()
623 *gain = impl->captureParam.captureMode.ctlParam.audioGain.gain; in AudioCaptureGetGain()
627 int32_t AudioCaptureSetGain(struct IAudioCapture *handle, float gain) in AudioCaptureSetGain() argument
631 if (impl == NULL || gain < 0) { in AudioCaptureSetGain()
640 float gainTemp = impl->captureParam.captureMode.ctlParam.audioGain.gain; in AudioCaptureSetGain()
641 impl->captureParam.captureMode.ctlParam.audioGain.gain = gain; in AudioCaptureSetGain()
646 impl->captureParam.captureMode.ctlParam.audioGain.gain in AudioCaptureSetGain()
[all...]
/drivers/hdf_core/framework/model/camera/device_impl/src/
H A Dcamera_isp.c98 if ((deviceConfig->isp.isp[devId].gain) == DEVICE_NOT_SUPPORT) { in CheckIspGetConfigId()
99 HDF_LOGE("%s: isp not support get gain", __func__); in CheckIspGetConfigId()
196 if ((deviceConfig->isp.isp[devId].gain) == DEVICE_NOT_SUPPORT) { in CheckIspSetConfigId()
197 HDF_LOGE("%s: isp not support set gain", __func__); in CheckIspSetConfigId()
252 isFailed |= !HdfSbufWriteUint8(rspData, deviceConfig->isp.isp[devId].gain); in CameraCmdIspEnumDevice()
H A Dcamera_sensor.c76 if ((deviceConfig->sensor.sensor[devId].gain) == DEVICE_NOT_SUPPORT) { in CheckSensorGetConfigId()
77 HDF_LOGE("%s: sensor[%{public}d] not support get gain", devId, __func__); in CheckSensorGetConfigId()
147 if ((deviceConfig->sensor.sensor[devId].gain) == DEVICE_NOT_SUPPORT) { in CheckSensorSetConfigId()
148 HDF_LOGE("%s: sensor[%{public}d] not support set gain", devId, __func__); in CheckSensorSetConfigId()
195 isFailed |= !HdfSbufWriteUint8(rspData, deviceConfig->sensor.sensor[devId].gain); in CameraCmdSensorEnumDevice()

Completed in 16 milliseconds

123