msm_common: send correct return code for sleep mixer control

Send correct return code for Vote Against Sleep mixer
control.

Change-Id: I9f9779456331a11c95c160bdc2b182aa8de78b91
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
This commit is contained in:
Phani Kumar Uppalapati
2022-08-23 10:39:11 -07:00
parent 239b1155ff
commit f3ce1994c6

View File

@@ -1005,19 +1005,24 @@ static int msm_lpi_logging_enable_get(struct snd_kcontrol *kcontrol,
static int msm_vote_against_sleep_ctl_put(struct snd_kcontrol *kcontrol, static int msm_vote_against_sleep_ctl_put(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol) struct snd_ctl_elem_value *ucontrol)
{ {
int ret = 0;
vote_against_sleep_enable = ucontrol->value.integer.value[0]; vote_against_sleep_enable = ucontrol->value.integer.value[0];
pr_debug("%s: vote against sleep enable: %d", __func__, pr_debug("%s: vote against sleep enable: %d", __func__,
vote_against_sleep_enable); vote_against_sleep_enable);
audio_prm_set_vote_against_sleep((uint8_t)vote_against_sleep_enable); ret = audio_prm_set_vote_against_sleep((uint8_t)vote_against_sleep_enable);
return 0; pr_debug("%s: vote against sleep vote ret: %d\n", __func__, ret);
return ret;
} }
static int msm_vote_against_sleep_ctl_get(struct snd_kcontrol *kcontrol, static int msm_vote_against_sleep_ctl_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol) struct snd_ctl_elem_value *ucontrol)
{ {
ucontrol->value.integer.value[0] = vote_against_sleep_enable; ucontrol->value.integer.value[0] = vote_against_sleep_enable;
pr_debug("%s: vote against sleep enable: %d", __func__,
vote_against_sleep_enable);
return 0; return 0;
} }