summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Nelson <eric.nelson@boundarydevices.com>2015-01-30 13:17:47 -0700
committerMax Krummenacher <max.krummenacher@toradex.com>2015-03-09 16:40:52 +0100
commitf0843868acdcfaa2767c6ae248f57d940247f7bd (patch)
tree08383621dbfc1a82233a95d07e9ed17d6f5108be
parent9f067d8709639ea23ae6538d800c0822ed6e707f (diff)
ASoC: sgtl5000: add delay before first I2C access
Updated to match patch sent to mainline. Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com> (cherry picked from commit b6a502e0748578efc2ba55c8c8c9a59c760b0f70)
-rw-r--r--sound/soc/codecs/sgtl5000.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index 1ecf612b6e2f..2780cf49c457 100644
--- a/sound/soc/codecs/sgtl5000.c
+++ b/sound/soc/codecs/sgtl5000.c
@@ -1494,7 +1494,8 @@ static int sgtl5000_i2c_probe(struct i2c_client *client,
if (ret)
return ret;
- usleep_range(1,2); /* Data sheet says minimum 1uS delay after SYS_MCLK */
+ /* Need 8 clocks before I2C accesses */
+ udelay(1);
/* read chip information */
ret = sgtl5000_read16(client, SGTL5000_CHIP_ID, &reg);