From: Jorge Eduardo Candelaria Date: Sat, 11 Dec 2010 03:06:30 +0000 (-0600) Subject: ASoC: twl6040: Increase timeout for power up X-Git-Tag: v2.6.38-rc1~236^2^2~39^2^2~4 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=cbd9cb5de3182d688544611c019b06bf04e2ad06;p=~shefty%2Frdma-dev.git ASoC: twl6040: Increase timeout for power up After coming back from suspend, the timeout waiting for Phoenix chip to complete its power up sequence is not enough, which leaves the codec cache value for some registers in an outdated state. Increase the timeout value to wait for the power up sequence to correclty complete. Signed-off-by: Jorge Eduardo Candelaria Signed-off-by: Margarita Olaya Cabrera Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index a8ec9113cc3..39f0bc5145c 100644 --- a/sound/soc/codecs/twl6040.c +++ b/sound/soc/codecs/twl6040.c @@ -752,7 +752,7 @@ static int twl6040_power_up_completion(struct snd_soc_codec *codec, u8 intid; time_left = wait_for_completion_timeout(&priv->ready, - msecs_to_jiffies(48)); + msecs_to_jiffies(144)); if (!time_left) { twl_i2c_read_u8(TWL_MODULE_AUDIO_VOICE, &intid,