Home
last modified time | relevance | path

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

123

/hardware/qcom/audio/legacy/alsa_sound/
DAudioStreamOutALSA.cpp74 float volume; in setVolume() local
77 volume = (left + right) / 2; in setVolume()
78 if (volume < 0.0) { in setVolume()
79 ALOGW("AudioSessionOutALSA::setVolume(%f) under 0.0, assuming 0.0\n", volume); in setVolume()
80 volume = 0.0; in setVolume()
81 } else if (volume > 1.0) { in setVolume()
82 ALOGW("AudioSessionOutALSA::setVolume(%f) over 1.0, assuming 1.0\n", volume); in setVolume()
83 volume = 1.0; in setVolume()
85 vol = lrint((volume * 0x2000)+0.5); in setVolume()
89 ALOGV("setLpaVolume(%f)\n", volume); in setVolume()
[all …]
DALSAMixer.cpp93 long volume; member
198 info->volume = info->max; in ALSAMixer()
199 setVol[i] (elem, info->volume); in ALSAMixer()
235 info->volume = info->max; in ALSAMixer()
236 setVol[i] (elem, info->volume); in ALSAMixer()
267 status_t ALSAMixer::setMasterVolume(float volume) in setMasterVolume() argument
276 long vol = minVol + volume * (maxVol - minVol); in setMasterVolume()
280 info->volume = vol; in setMasterVolume()
299 info->volume = vol; in setMasterGain()
321 info->volume = vol; in setVolume()
[all …]
Daudio_hw_hal.cpp446 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) in adev_set_voice_volume() argument
449 return qadev->hwif->setVoiceVolume(volume); in adev_set_voice_volume()
452 static int adev_set_master_volume(struct audio_hw_device *dev, float volume) in adev_set_master_volume() argument
455 return qadev->hwif->setMasterVolume(volume); in adev_set_master_volume()
458 static int adev_get_master_volume(struct audio_hw_device *dev, float *volume) { in adev_get_master_volume() argument
461 return qadev->hwif->getMasterVolume(volume); in adev_get_master_volume()
465 static int adev_set_fm_volume(struct audio_hw_device *dev, float volume) in adev_set_fm_volume() argument
468 return qadev->hwif->setFmVolume(volume); in adev_set_fm_volume()
DAudioHardwareALSA.h235 status_t setMasterVolume(float volume);
459 virtual status_t setVoiceVolume(float volume);
466 virtual status_t setMasterVolume(float volume);
468 virtual status_t setFmVolume(float volume);
/hardware/qcom/audio/hal/
Dvoice.c218 voice_set_volume(adev, adev->voice.volume); in voice_start_usecase()
364 int voice_set_volume(struct audio_device *adev, float volume) in voice_set_volume() argument
368 adev->voice.volume = volume; in voice_set_volume()
370 if (volume < 0.0) { in voice_set_volume()
371 volume = 0.0; in voice_set_volume()
372 } else if (volume > 1.0) { in voice_set_volume()
373 volume = 1.0; in voice_set_volume()
376 vol = lrint(volume * 100.0); in voice_set_volume()
507 adev->voice.volume = 1.0f; in voice_init()
Dvoice.h62 float volume; member
86 int voice_set_volume(struct audio_device *adev, float volume);
/hardware/libhardware_legacy/audio/
DAudioPolicyCompatClient.cpp121 float volume, in setStreamVolume() argument
126 volume, output, delayMs); in setStreamVolume()
142 status_t AudioPolicyCompatClient::setVoiceVolume(float volume, int delayMs) in setVoiceVolume() argument
144 return mServiceOps->set_voice_volume(mService, volume, delayMs); in setVoiceVolume()
DAudioDumpInterface.h133 virtual status_t setVoiceVolume(float volume) in setVoiceVolume() argument
134 {return mFinalInterface->setVoiceVolume(volume);} in setVoiceVolume()
135 virtual status_t setMasterVolume(float volume) in setMasterVolume() argument
136 {return mFinalInterface->setMasterVolume(volume);} in setMasterVolume()
DAudioPolicyCompatClient.h69 float volume,
74 virtual status_t setVoiceVolume(float volume, int delayMs = 0);
DA2dpAudioInterface.h40 virtual status_t setVoiceVolume(float volume);
41 virtual status_t setMasterVolume(float volume);
DAudioHardwareStub.h71 virtual status_t setVoiceVolume(float volume);
72 virtual status_t setMasterVolume(float volume);
DAudioHardwareGeneric.h112 virtual status_t setVoiceVolume(float volume);
113 virtual status_t setMasterVolume(float volume);
DAudioHardwareStub.cpp89 status_t AudioHardwareStub::setVoiceVolume(float volume) in setVoiceVolume() argument
94 status_t AudioHardwareStub::setMasterVolume(float volume) in setMasterVolume() argument
/hardware/libhardware/modules/audio/
Daudio_hw.c313 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) in adev_set_voice_volume() argument
315 ALOGV("adev_set_voice_volume: %f", volume); in adev_set_voice_volume()
319 static int adev_set_master_volume(struct audio_hw_device *dev, float volume) in adev_set_master_volume() argument
321 ALOGV("adev_set_master_volume: %f", volume); in adev_set_master_volume()
325 static int adev_get_master_volume(struct audio_hw_device *dev, float *volume) in adev_get_master_volume() argument
327 ALOGV("adev_get_master_volume: %f", *volume); in adev_get_master_volume()
/hardware/libhardware_legacy/include/hardware_legacy/
DAudioHardwareInterface.h217 virtual status_t setVoiceVolume(float volume) = 0;
224 virtual status_t setMasterVolume(float volume) = 0;
232 virtual status_t getMasterVolume(float *volume) = 0;
DAudioHardwareBase.h49 virtual status_t getMasterVolume(float *volume);
/hardware/qcom/msm8994/original-kernel-headers/linux/mfd/
Dmsm-adie-codec.h121 u32 volume);
143 u32 num_channels, u32 volume /* in percentage */);
/hardware/qcom/msm8960/original-kernel-headers/linux/mfd/
Dmsm-adie-codec.h121 u32 volume);
143 u32 num_channels, u32 volume /* in percentage */);
/hardware/qcom/msm8x84/original-kernel-headers/linux/mfd/
Dmsm-adie-codec.h121 u32 volume);
143 u32 num_channels, u32 volume /* in percentage */);
/hardware/qcom/msm8x74/original-kernel-headers/linux/mfd/
Dmsm-adie-codec.h121 u32 volume);
143 u32 num_channels, u32 volume /* in percentage */);
/hardware/qcom/msm8x26/original-kernel-headers/linux/mfd/
Dmsm-adie-codec.h121 u32 volume);
143 u32 num_channels, u32 volume /* in percentage */);
/hardware/libhardware/include/hardware/
Daudio.h525 int (*set_voice_volume)(struct audio_hw_device *dev, float volume);
532 int (*set_master_volume)(struct audio_hw_device *dev, float volume);
541 int (*get_master_volume)(struct audio_hw_device *dev, float *volume);
Dbt_rc.h169 typedef void (* btrc_volume_change_callback) (uint8_t volume, uint8_t ctype);
258 bt_status_t (*set_volume)(uint8_t volume);
Dbt_hf_client.h243 typedef void (*bthf_client_volume_change_callback) (bthf_client_volume_type_t type, int volume);
325 bt_status_t (*volume_control) (bthf_client_volume_type_t type, int volume);
Dbt_hf.h103 typedef void (* bthf_volume_cmd_callback)(bthf_volume_type_t type, int volume, bt_bdaddr_t *bd_addr…
251 bt_status_t (*volume_control) (bthf_volume_type_t type, int volume, bt_bdaddr_t *bd_addr );

123