diff options
author | Eric Nelson <eric.nelson@boundarydevices.com> | 2015-01-30 12:14:50 -0700 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2015-03-09 16:40:50 +0100 |
commit | b834693da2c1bfcb908e6e4e6a7535d6ba2e56a3 (patch) | |
tree | 92f794c34691a7c41e944566ca5dd0cdca82c17c | |
parent | e7a905531c637477202665b3f64815844076b5f8 (diff) |
ASoC: sgtl5000: add delay before first I2C access
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
(cherry picked from commit 750009656f7c56a19339864c137566611157f6ba)
-rw-r--r-- | sound/soc/codecs/sgtl5000.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 42db742ebe42..65544af8909f 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -1494,6 +1494,8 @@ static int sgtl5000_i2c_probe(struct i2c_client *client, if (ret) return ret; + udelay(1,2); /* Data sheet says minimum 1uS delay after SYS_MCLK */ + /* read chip information */ ret = sgtl5000_read16(client, SGTL5000_CHIP_ID, ®); if (ret < 0) { |