소스 검색

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 <broonie@opensource.wolfsonmicro.com>
Mark Brown 13 년 전
부모
커밋
d5a7f23f9c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      sound/soc/codecs/wm8996.c

+ 1 - 0
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)
 static int wm8996_reset(struct wm8996_priv *wm8996)
 {
 {
 	if (wm8996->pdata.ldo_ena > 0) {
 	if (wm8996->pdata.ldo_ena > 0) {
+		gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 1);
 		gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 0);
 		gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 0);
 		return 0;
 		return 0;
 	} else {
 	} else {