aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8960.c
diff options
context:
space:
mode:
authorDmitry Artamonow <mad_soft@inbox.ru>2010-12-08 23:36:17 +0300
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-12-09 10:55:37 +0000
commit3f343f8512c7882a3637d9aea4ec6b3801cbcdc5 (patch)
tree129d750e31f41b9cdabb9bed5458061e44f74130 /sound/soc/codecs/wm8960.c
parentASoC: Correct WM8962 interrupt mask register read (diff)
downloadlinux-dev-3f343f8512c7882a3637d9aea4ec6b3801cbcdc5.tar.xz
linux-dev-3f343f8512c7882a3637d9aea4ec6b3801cbcdc5.zip
ASoC: fix deemphasis control in wm8904/55/60 codecs
Deemphasis control's .get callback should update control's value instead of returning it - return value of callback function is used for indicating error or success of operation. Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@kernel.org
Diffstat (limited to '')
-rw-r--r--sound/soc/codecs/wm8960.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 8d5efb333c33..21986c42272f 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs/wm8960.c
@@ -138,7 +138,8 @@ static int wm8960_get_deemph(struct snd_kcontrol *kcontrol,
struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol);
struct wm8960_priv *wm8960 = snd_soc_codec_get_drvdata(codec);
- return wm8960->deemph;
+ ucontrol->value.enumerated.item[0] = wm8960->deemph;
+ return 0;
}
static int wm8960_put_deemph(struct snd_kcontrol *kcontrol,