]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
ASoC: twl6040: Increase timeout for power up
authorJorge Eduardo Candelaria <jorge.candelaria@ti.com>
Sat, 11 Dec 2010 03:06:30 +0000 (21:06 -0600)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 14 Dec 2010 20:36:59 +0000 (20:36 +0000)
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 <jorge.candelaria@ti.com>
Signed-off-by: Margarita Olaya Cabrera <magi.olaya@ti.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/twl6040.c

index a8ec9113cc339aee35a5dbc040dfadcd58ace883..39f0bc5145c0fc9a3e6e344755877aaf79215e3a 100644 (file)
@@ -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,