Home
last modified time | relevance | path

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

12

/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/
Dmaxxaudio.c113 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 …]
Dhfp.c86 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 …]
Dtfa_98xx.h26 void audio_extn_tfa_98xx_set_voice_vol(float vol);
36 #define audio_extn_tfa_98xx_set_voice_vol(vol) (0) argument
Dmaxxaudio.h23 #define audio_extn_ma_set_state(adev, type, vol, active) (false) argument
31 float vol, bool active);
Dtfa_98xx.c468 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()
Dext_speaker.c152 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()
Daudio_extn.h34 void audio_extn_extspk_set_voice_vol(void* extn, float vol);
/hardware/qcom/audio/hal/
Dvoice.c409 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/
Dma_listener.c58 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/
Dmsm_audio.h199 uint32_t vol; member
/hardware/qcom/msm8960/original-kernel-headers/linux/
Dmsm_audio.h209 uint32_t vol; member
/hardware/qcom/msm8x84/kernel-headers/linux/
Dmsm_audio.h199 uint32_t vol; member
/hardware/qcom/msm8x84/original-kernel-headers/linux/
Dmsm_audio.h209 uint32_t vol; member
/hardware/qcom/msm8x26/kernel-headers/linux/
Dmsm_audio.h199 uint32_t vol; member
/hardware/qcom/msm8x26/original-kernel-headers/linux/
Dmsm_audio.h217 uint32_t vol; member
/hardware/qcom/msm8998/original-kernel-headers/linux/
Dmsm_audio.h229 uint32_t vol; member
/hardware/qcom/msm8x09/original-kernel-headers/linux/
Dmsm_audio.h229 uint32_t vol; member
/hardware/qcom/msm8994/kernel-headers/linux/
Dmsm_audio.h206 uint32_t vol; member
/hardware/qcom/msm8994/original-kernel-headers/linux/
Dmsm_audio.h226 uint32_t vol; member
/hardware/qcom/msm8998/kernel-headers/linux/
Dmsm_audio.h209 uint32_t vol; member
/hardware/qcom/msm8x09/kernel-headers/linux/
Dmsm_audio.h209 uint32_t vol; member

12