[alsa-devel] [PATCH] ASoC: wm8994: Ensure lambda is zeroed for WM8994

Mark Brown broonie at opensource.wolfsonmicro.com
Mon May 27 15:24:49 CEST 2013


Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
---
 sound/soc/codecs/wm8994.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 5f51127..f5eb644 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -1,3 +1,4 @@
+#define DEBUG
 /*
  * wm8994.c  --  WM8994 ALSA SoC Audio driver
  *
@@ -2078,6 +2079,7 @@ static int wm8994_get_fll_config(struct wm8994 *control, struct fll_div *fll,
 
 		/* Move down to proper range now rounding is done */
 		fll->k = K / 10;
+		fll->lambda = 0;
 
 		pr_debug("N=%x K=%x\n", fll->n, fll->k);
 		break;
@@ -3129,9 +3131,7 @@ static int wm8994_codec_suspend(struct snd_soc_codec *codec)
 static int wm8994_codec_resume(struct snd_soc_codec *codec)
 {
 	struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec);
-	struct wm8994 *control = wm8994->wm8994;
 	int i, ret;
-	unsigned int val, mask;
 
 	for (i = 0; i < ARRAY_SIZE(wm8994->fll); i++) {
 		if (!wm8994->fll_suspend[i].out)
@@ -3986,7 +3986,7 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)
 		case 0:
 		case 1:
 			wm8994->hubs.no_series_update = 1;
-			wm8994->hubs.no_runtime_dcs = true;
+			//wm8994->hubs.no_runtime_dcs = true;
 			break;
 		default:
 			break;
-- 
1.7.10.4



More information about the Alsa-devel mailing list