Skip to content

Commit bd2347f

Browse files
Srinivas-Kandagatlabroonie
authored andcommitted
ASoC: codecs: wcd938x: fix return value of mixer put function
wcd938x_ear_pa_put_gain, wcd938x_set_swr_port and wcd938x_set_compander currently returns zero eventhough it changes the value. Fix this, so that change notifications are sent correctly. Fixes: e8ba1e0 ("ASoC: codecs: wcd938x: add basic controls") Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent fca041a commit bd2347f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sound/soc/codecs/wcd938x.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2559,7 +2559,7 @@ static int wcd938x_ear_pa_put_gain(struct snd_kcontrol *kcontrol,
25592559
WCD938X_EAR_GAIN_MASK,
25602560
ucontrol->value.integer.value[0]);
25612561

2562-
return 0;
2562+
return 1;
25632563
}
25642564

25652565
static int wcd938x_get_compander(struct snd_kcontrol *kcontrol,
@@ -2610,7 +2610,7 @@ static int wcd938x_set_compander(struct snd_kcontrol *kcontrol,
26102610
else
26112611
wcd938x_connect_port(wcd, portidx, mc->reg, false);
26122612

2613-
return 0;
2613+
return 1;
26142614
}
26152615

26162616
static int wcd938x_ldoh_get(struct snd_kcontrol *kcontrol,
@@ -2917,7 +2917,7 @@ static int wcd938x_set_swr_port(struct snd_kcontrol *kcontrol,
29172917

29182918
wcd938x_connect_port(wcd, portidx, ch_idx, enable);
29192919

2920-
return 0;
2920+
return 1;
29212921

29222922
}
29232923

0 commit comments

Comments
 (0)