Home
last modified time | relevance | path

Searched refs:vol (Results 1 – 14 of 14) sorted by relevance

/hardware/qcom/audio/legacy/alsa_sound/
DALSAMixer.cpp276 long vol = minVol + volume * (maxVol - minVol); in setMasterVolume() local
277 if (vol > maxVol) vol = maxVol; in setMasterVolume()
278 if (vol < minVol) vol = minVol; in setMasterVolume()
280 info->volume = vol; in setMasterVolume()
281 snd_mixer_selem_set_playback_volume_all (info->elem, vol); in setMasterVolume()
295 long vol = minVol + gain * (maxVol - minVol); in setMasterGain() local
296 if (vol > maxVol) vol = maxVol; in setMasterGain()
297 if (vol < minVol) vol = minVol; in setMasterGain()
299 info->volume = vol; in setMasterGain()
300 snd_mixer_selem_set_capture_volume_all (info->elem, vol); in setMasterGain()
[all …]
DAudioStreamOutALSA.cpp73 int vol; in setVolume() local
85 vol = lrint((volume * 0x2000)+0.5); in setVolume()
90 ALOGV("Setting LPA volume to %d (available range is 0 to 100)\n", vol); in setVolume()
91 mHandle->module->setLpaVolume(vol); in setVolume()
97 ALOGV("Setting Compressed volume to %d (available range is 0 to 100)\n", vol); in setVolume()
98 mHandle->module->setCompressedVolume(vol); in setVolume()
Dalsa_default.cpp80 static void s_set_volte_volume(int vol);
1573 void s_set_voice_volume(int vol) in getUCMDevice()
1576 ALOGV("s_set_voice_volume: volume %d", vol); in getUCMDevice()
1578 control.set("Voice Rx Volume", vol, 0); in getUCMDevice()
1585 err = csd_volume(vol); in getUCMDevice()
1594 void s_set_volte_volume(int vol) in getUCMDevice()
1596 ALOGV("s_set_volte_volume: volume %d", vol); in getUCMDevice()
1598 control.set("VoLTE Rx Volume", vol, 0); in getUCMDevice()
1602 void s_set_voip_volume(int vol) in getUCMDevice()
1604 ALOGV("s_set_voip_volume: volume %d", vol); in getUCMDevice()
[all …]
DAudioHardwareALSA.cpp270 int vol = lrint(v * 100.0); in setVoiceVolume() local
275 vol = 100 - vol; in setVoiceVolume()
279 mALSADevice->setVoipVolume(vol); in setVoiceVolume()
282 mALSADevice->setVoiceVolume(vol); in setVoiceVolume()
284 mALSADevice->setVoLTEVolume(vol); in setVoiceVolume()
296 int vol; in setFmVolume() local
305 vol = lrint((value * 0x2000) + 0.5); in setFmVolume()
308 ALOGV("Setting FM volume to %d (available range is 0 to 0x2000)\n", vol); in setFmVolume()
310 mALSADevice->setFmVolume(vol); in setFmVolume()
/hardware/qcom/audio/hal/audio_extn/
Dhfp.c72 int32_t vol, ret = 0; in hfp_set_volume() local
86 vol = lrint((value * 0x2000) + 0.5); in hfp_set_volume()
94 ALOGD("%s: Setting HFP volume to %d \n", __func__, vol); in hfp_set_volume()
101 if(mixer_ctl_set_value(ctl, 0, vol) < 0) { in hfp_set_volume()
102 ALOGE("%s: Couldn't set HFP Volume: [%d]", __func__, vol); in hfp_set_volume()
269 float vol; in audio_extn_hfp_set_parameters() local
310 if (sscanf(value, "%f", &vol) != 1){ in audio_extn_hfp_set_parameters()
315 ALOGD("%s: set_hfp_volume usecase, Vol: [%f]", __func__, vol); in audio_extn_hfp_set_parameters()
316 hfp_set_volume(adev, vol); in audio_extn_hfp_set_parameters()
Dext_speaker.c151 void audio_extn_extspk_set_voice_vol(void* extn, float vol) in audio_extn_extspk_set_voice_vol() argument
156 data->set_voice_vol(vol); in audio_extn_extspk_set_voice_vol()
Daudio_extn.h26 void audio_extn_extspk_set_voice_vol(void* extn, float vol);
/hardware/qcom/audio/hal/
Dvoice.c303 int vol, err = 0; in voice_set_volume() local
313 vol = lrint(volume * 100.0); in voice_set_volume()
318 vol = 100 - vol; in voice_set_volume()
320 err = platform_set_voice_volume(adev->platform, vol); in voice_set_volume()
/hardware/qcom/msm8960/kernel-headers/linux/
Dmsm_audio.h199 uint32_t vol; member
/hardware/qcom/msm8960/original-kernel-headers/linux/
Dmsm_audio.h209 uint32_t vol; member
/hardware/qcom/msm8x84/original-kernel-headers/linux/
Dmsm_audio.h209 uint32_t vol; member
/hardware/qcom/msm8x74/kernel-headers/linux/
Dmsm_audio.h199 uint32_t vol; member
/hardware/qcom/msm8x84/kernel-headers/linux/
Dmsm_audio.h199 uint32_t vol; member
/hardware/qcom/msm8x74/original-kernel-headers/linux/
Dmsm_audio.h209 uint32_t vol; member