From: Mark Brown Date: Fri, 17 Feb 2012 21:12:21 +0000 (-0800) Subject: ASoC: wm8996: Make sure we bounce /RESET to reset X-Git-Tag: v3.4-rc1~88^2^2~27^2~67 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d5a7f23f9c8be29833ef4d805976b6906c25c658;p=karo-tx-linux.git 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. Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c index a60d2ec249a2..aba144f69946 100644 --- a/sound/soc/codecs/wm8996.c +++ b/sound/soc/codecs/wm8996.c @@ -1709,6 +1709,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 {