Skip to contentSkip to conversation

ASoC: WM8995: Fix incorrect use of snd_soc_update_bits()

PATCH Applied Dimitris Papastamos 3 participants 3 messages Jan 19, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: WM8995: Fix incorrect use of snd_soc_update_bits()

In the wm8995_set_tristate() function when updating the register bits use the value and not the register index as the value argument.

---
 sound/soc/codecs/wm8995.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8995.c +1 -1
index 7d56341..67eaaec 100644
@@ -1265,7 +1265,7 @@ static int wm8995_set_tristate(struct snd_soc_dai *codec_dai, int tristate)
 	else
 		val = 0;
 
-	return snd_soc_update_bits(codec, reg, mask, reg);
+	return snd_soc_update_bits(codec, reg, mask, val);
 }
 
 /* The size in bits of the FLL divide multiplied by 10
Signature · 1 line
1.7.3.5