//[AUDIO_BSP] [email protected] phone memo [START]
static int msm_phonememo_voice_mute_put(struct snd_kcontrol *kcontrol,
				struct snd_ctl_elem_value *ucontrol)
{
	int mute = ucontrol->value.integer.value[0];

	pr_debug("%s: mute=%d\n", __func__, mute);

	voc_set_phonememo_tx_mute(voc_get_session_id(VOICE_SESSION_NAME), TX_PATH, mute);

	return 0;
}
static int msm_phonememo_voice_mute_put(struct snd_kcontrol *kcontrol,
                    struct snd_ctl_elem_value *ucontrol)
{
    int ret = 0;
    int mute = ucontrol->value.integer.value[0];
    uint32_t session_id = ucontrol->value.integer.value[1];
    int ramp_duration = ucontrol->value.integer.value[2];

    if ((mute < 0) || (mute > 1) || (ramp_duration < 0)
        || (ramp_duration > MAX_RAMP_DURATION)) {
        pr_err(" %s Invalid arguments", __func__);

        ret = -EINVAL;
        goto done;
    }

    pr_debug("%s: mute=%d session_id=%#x ramp_duration=%d\n", __func__,
        mute, session_id, ramp_duration);
    voc_set_phonememo_tx_mute(voc_get_session_id(VOICE_SESSION_NAME), TX_PATH, mute);

    done:
    return 0;
}