Commit cbcfdf5c authored by Gary Zhang's avatar Gary Zhang

ENGR00221689 wm8962: add wait time after enable power supply

add 100ms wait time after enable power supply for
power stability
Signed-off-by: default avatarGary Zhang <b13634@freescale.com>
parent b14b8d7f
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* *
* Author: Mark Brown <broonie@opensource.wolfsonmicro.com> * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
* *
* Copyright (C) 2012 Freescale Semiconductor, Inc.
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
...@@ -4019,7 +4020,7 @@ static int wm8962_probe(struct snd_soc_codec *codec) ...@@ -4019,7 +4020,7 @@ static int wm8962_probe(struct snd_soc_codec *codec)
dev_err(codec->dev, "Failed to enable supplies: %d\n", ret); dev_err(codec->dev, "Failed to enable supplies: %d\n", ret);
goto err_get; goto err_get;
} }
msleep(100);
ret = snd_soc_read(codec, WM8962_SOFTWARE_RESET); ret = snd_soc_read(codec, WM8962_SOFTWARE_RESET);
if (ret < 0) { if (ret < 0) {
dev_err(codec->dev, "Failed to read ID register\n"); dev_err(codec->dev, "Failed to read ID register\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment