From b834693da2c1bfcb908e6e4e6a7535d6ba2e56a3 Mon Sep 17 00:00:00 2001 From: Eric Nelson Date: Fri, 30 Jan 2015 12:14:50 -0700 Subject: ASoC: sgtl5000: add delay before first I2C access Signed-off-by: Eric Nelson (cherry picked from commit 750009656f7c56a19339864c137566611157f6ba) --- sound/soc/codecs/sgtl5000.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- cgit v1.2.3