From cd6fa6fd23de3e1bd82d34b547b27e4a9a8d8be1 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Thu, 9 Dec 2010 11:29:13 +0000 Subject: [PATCH] --- yaml --- r: 230363 b: refs/heads/master c: 07a9e2b2fbdda631eeff54e4b8ebcaaea71be538 h: refs/heads/master i: 230361: bd6e01c728976d4f86a55a3b2ca55f82db7eab9d 230359: b674ff664e630ea5b8cd7874bd669ad29f48f739 v: v3 --- [refs] | 2 +- trunk/sound/soc/codecs/wm8580.c | 2 +- trunk/sound/soc/codecs/wm8904.c | 3 ++- trunk/sound/soc/codecs/wm8955.c | 3 ++- trunk/sound/soc/codecs/wm8960.c | 3 ++- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 88b47bc239e5..37c1e9b80964 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 05d209ad3b66efbb0925f01f1b3369fcbf31c86f +refs/heads/master: 07a9e2b2fbdda631eeff54e4b8ebcaaea71be538 diff --git a/trunk/sound/soc/codecs/wm8580.c b/trunk/sound/soc/codecs/wm8580.c index 45efc9437ee8..0ebdecfd27a9 100644 --- a/trunk/sound/soc/codecs/wm8580.c +++ b/trunk/sound/soc/codecs/wm8580.c @@ -160,7 +160,7 @@ static const u16 wm8580_reg[] = { 0x0121, 0x017e, 0x007d, 0x0014, /*R3*/ 0x0121, 0x017e, 0x007d, 0x0194, /*R7*/ - 0x001c, 0x0002, 0x0002, 0x00c2, /*R11*/ + 0x0010, 0x0002, 0x0002, 0x00c2, /*R11*/ 0x0182, 0x0082, 0x000a, 0x0024, /*R15*/ 0x0009, 0x0000, 0x00ff, 0x0000, /*R19*/ 0x00ff, 0x00ff, 0x00ff, 0x00ff, /*R23*/ diff --git a/trunk/sound/soc/codecs/wm8904.c b/trunk/sound/soc/codecs/wm8904.c index d0024666eaf9..8ba142abd8e6 100644 --- a/trunk/sound/soc/codecs/wm8904.c +++ b/trunk/sound/soc/codecs/wm8904.c @@ -817,7 +817,8 @@ static int wm8904_get_deemph(struct snd_kcontrol *kcontrol, struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); struct wm8904_priv *wm8904 = snd_soc_codec_get_drvdata(codec); - return wm8904->deemph; + ucontrol->value.enumerated.item[0] = wm8904->deemph; + return 0; } static int wm8904_put_deemph(struct snd_kcontrol *kcontrol, diff --git a/trunk/sound/soc/codecs/wm8955.c b/trunk/sound/soc/codecs/wm8955.c index 6200beb082b2..ca0265f008d2 100644 --- a/trunk/sound/soc/codecs/wm8955.c +++ b/trunk/sound/soc/codecs/wm8955.c @@ -379,7 +379,8 @@ static int wm8955_get_deemph(struct snd_kcontrol *kcontrol, struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); struct wm8955_priv *wm8955 = snd_soc_codec_get_drvdata(codec); - return wm8955->deemph; + ucontrol->value.enumerated.item[0] = wm8955->deemph; + return 0; } static int wm8955_put_deemph(struct snd_kcontrol *kcontrol, diff --git a/trunk/sound/soc/codecs/wm8960.c b/trunk/sound/soc/codecs/wm8960.c index 0bcf36ee29bc..2c5712dce1d5 100644 --- a/trunk/sound/soc/codecs/wm8960.c +++ b/trunk/sound/soc/codecs/wm8960.c @@ -137,7 +137,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,