[alsa-devel] [PATCH] wm8974: fix a wrong bit definition

Guennadi Liakhovetski g.liakhovetski at gmx.de
Thu Dec 17 14:51:35 CET 2009


The wm8974 datasheet defines BUFIOEN as bit 2.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski at gmx.de>
---

no idea if this would break anything, so, please test. Maybe the correct 
fix would be to actually use a correct name for bit 4, but who wants to 
enable Mic bias when putting bias into standby?...

diff --git a/sound/soc/codecs/wm8974.c b/sound/soc/codecs/wm8974.c
index eff2933..fb99433 100644
--- a/sound/soc/codecs/wm8974.c
+++ b/sound/soc/codecs/wm8974.c
@@ -47,7 +47,7 @@ static const u16 wm8974_reg[WM8974_CACHEREGNUM] = {
 };
 
 #define WM8974_POWER1_BIASEN  0x08
-#define WM8974_POWER1_BUFIOEN 0x10
+#define WM8974_POWER1_BUFIOEN 0x04
 
 struct wm8974_priv {
 	struct snd_soc_codec codec;


More information about the Alsa-devel mailing list