Skip to contentSkip to conversation

ASoC: wm8996: Make sure we bounce /RESET to reset

PATCH New Mark Brown 1 participant 1 message Feb 17, 2012

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: wm8996: Make sure we bounce /RESET to reset

While it matches the current code only bringing the device out of reset isn't actually doing what the function says so make sure we set the GPIO high before we pull it low.

---
 sound/soc/codecs/wm8996.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
sound/soc/codecs/wm8996.c +1 -0
index e3e3a37..03d191a 100644
@@ -1713,6 +1713,7 @@ static bool wm8996_volatile_register(struct device *dev, unsigned int reg)
 static int wm8996_reset(struct wm8996_priv *wm8996)
 {
 	if (wm8996->pdata.ldo_ena > 0) {
+		gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 1);
 		gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 0);
 		return 0;
 	} else {
Signature · 1 line
1.7.9