static int msm_volte_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { int volume = ucontrol->value.integer.value[0]; pr_debug("%s: volume: %d\n", __func__, volume); voc_set_rx_vol_index(voc_get_session_id(VOLTE_SESSION_NAME), RX_PATH, volume); return 0; }
static int msm_voice_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { int dir = ucontrol->value.integer.value[0]; int volume = ucontrol->value.integer.value[1]; pr_debug(" dir: %d, volume: %d\n", dir, volume); voc_set_rx_vol_index(dir, volume); return 0; }
static int msm_volte_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { int volume = ucontrol->value.integer.value[0]; #if defined(CONFIG_SEC_DEVIDE_RINGTONE_GAIN) if(ringback_tone_state) volume +=100; #endif pr_debug("%s: volume: %d\n", __func__, volume); voc_set_rx_vol_index(voc_get_session_id(VOLTE_SESSION_NAME), RX_PATH, volume); return 0; }