/hardware/qcom/audio/legacy/alsa_sound/ |
D | ALSAMixer.cpp | 276 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 …]
|
D | AudioStreamOutALSA.cpp | 73 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()
|
D | alsa_default.cpp | 80 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 …]
|
D | AudioHardwareALSA.cpp | 270 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/ |
D | maxxaudio.c | 113 float vol; member 228 STREAM_VOICE, ma_cur_state_table[STREAM_VOICE].vol, in print_state_log() 230 STREAM_SYSTEM, ma_cur_state_table[STREAM_SYSTEM].vol, in print_state_log() 232 STREAM_RING, ma_cur_state_table[STREAM_RING].vol, in print_state_log() 234 STREAM_MUSIC, ma_cur_state_table[STREAM_MUSIC].vol, in print_state_log() 236 STREAM_ALARM, ma_cur_state_table[STREAM_ALARM].vol, in print_state_log() 238 STREAM_NOTIFICATION, ma_cur_state_table[STREAM_NOTIFICATION].vol, in print_state_log() 290 float vol = 0; in check_and_send_all_audio_cal() local 606 ma_cur_state_table[i].vol = 0.0; in audio_extn_ma_init() 645 float vol, bool active) in audio_extn_ma_set_state() argument [all …]
|
D | hfp.c | 86 int32_t vol, ret = 0; in hfp_set_volume() local 102 vol = lrint((value * 0x2000) + 0.5); in hfp_set_volume() 109 ALOGD("%s: Setting HFP volume to %d \n", __func__, vol); in hfp_set_volume() 125 if(mixer_ctl_set_value(ctl, 0, vol) < 0) { in hfp_set_volume() 126 ALOGE("%s: Couldn't set HFP Volume: [%d]", __func__, vol); in hfp_set_volume() 435 float vol; in audio_extn_hfp_set_parameters() local 492 if (sscanf(value, "%f", &vol) != 1){ in audio_extn_hfp_set_parameters() 497 ALOGD("%s: set_hfp_volume usecase, Vol: [%f]", __func__, vol); in audio_extn_hfp_set_parameters() 498 hfp_set_volume(adev, vol); in audio_extn_hfp_set_parameters() 505 if (sscanf(value, "%f", &vol) != 1){ in audio_extn_hfp_set_parameters() [all …]
|
D | tfa_98xx.h | 26 void audio_extn_tfa_98xx_set_voice_vol(float vol); 36 #define audio_extn_tfa_98xx_set_voice_vol(vol) (0) argument
|
D | maxxaudio.h | 23 #define audio_extn_ma_set_state(adev, type, vol, active) (false) argument 31 float vol, bool active);
|
D | tfa_98xx.c | 468 void audio_extn_tfa_98xx_set_voice_vol(float vol) in audio_extn_tfa_98xx_set_voice_vol() argument 475 if (vol < 0.0) { in audio_extn_tfa_98xx_set_voice_vol() 476 vol = 0.0; in audio_extn_tfa_98xx_set_voice_vol() 478 vol = ((vol > HFP_MAX_VOLUME) ? 1.0 : (vol / HFP_MAX_VOLUME)); in audio_extn_tfa_98xx_set_voice_vol() 480 vsteps = (int)floorf((1.0 - vol) * TFA_98XX_HFP_VSETPS); in audio_extn_tfa_98xx_set_voice_vol()
|
D | ext_speaker.c | 152 void audio_extn_extspk_set_voice_vol(void* extn, float vol) in audio_extn_extspk_set_voice_vol() argument 157 data->set_voice_vol(vol); in audio_extn_extspk_set_voice_vol()
|
D | audio_extn.h | 34 void audio_extn_extspk_set_voice_vol(void* extn, float vol);
|
/hardware/qcom/audio/hal/ |
D | voice.c | 409 int vol, err = 0; in voice_set_volume() local 419 vol = lrint(volume * 100.0); in voice_set_volume() 424 vol = 100 - vol; in voice_set_volume() 426 err = platform_set_voice_volume(adev->platform, vol); in voice_set_volume()
|
/hardware/qcom/audio/post_proc/ |
D | ma_listener.c | 58 float vol; member 216 (g_cur_state[stream_type].vol != max_vol || in check_and_set_ma_parameter() 222 g_cur_state[stream_type].vol, max_vol); in check_and_set_ma_parameter() 226 g_cur_state[stream_type].vol = max_vol; in check_and_set_ma_parameter()
|
/hardware/qcom/msm8960/kernel-headers/linux/ |
D | msm_audio.h | 199 uint32_t vol; member
|
/hardware/qcom/msm8960/original-kernel-headers/linux/ |
D | msm_audio.h | 209 uint32_t vol; member
|
/hardware/qcom/msm8x84/kernel-headers/linux/ |
D | msm_audio.h | 199 uint32_t vol; member
|
/hardware/qcom/msm8x84/original-kernel-headers/linux/ |
D | msm_audio.h | 209 uint32_t vol; member
|
/hardware/qcom/msm8x26/kernel-headers/linux/ |
D | msm_audio.h | 199 uint32_t vol; member
|
/hardware/qcom/msm8x26/original-kernel-headers/linux/ |
D | msm_audio.h | 217 uint32_t vol; member
|
/hardware/qcom/msm8998/original-kernel-headers/linux/ |
D | msm_audio.h | 229 uint32_t vol; member
|
/hardware/qcom/msm8x09/original-kernel-headers/linux/ |
D | msm_audio.h | 229 uint32_t vol; member
|
/hardware/qcom/msm8994/kernel-headers/linux/ |
D | msm_audio.h | 206 uint32_t vol; member
|
/hardware/qcom/msm8994/original-kernel-headers/linux/ |
D | msm_audio.h | 226 uint32_t vol; member
|
/hardware/qcom/msm8998/kernel-headers/linux/ |
D | msm_audio.h | 209 uint32_t vol; member
|
/hardware/qcom/msm8x09/kernel-headers/linux/ |
D | msm_audio.h | 209 uint32_t vol; member
|