Skip to content

Commit

Permalink
ASoC: wm8996: Make sure we bounce /RESET to reset
Browse files Browse the repository at this point in the history
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 <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Feb 17, 2012
1 parent 8005f39 commit d5a7f23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/codecs/wm8996.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d5a7f23

Please sign in to comment.