]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - sound/soc/fsl/mpc5200_psc_ac97.c
ASoC: MPC5200: Increase the delay time between resets
[linux-2.6.git] / sound / soc / fsl / mpc5200_psc_ac97.c
index 7eb549985d490cef5bc1cd3a6717020bea2b5fb4..c4ae3e096bb9154376a3a3760e3cf4897cad65a3 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/module.h>
 #include <linux/of_device.h>
 #include <linux/of_platform.h>
+#include <linux/delay.h>
 
 #include <sound/pcm.h>
 #include <sound/pcm_params.h>
@@ -112,7 +113,7 @@ static void psc_ac97_cold_reset(struct snd_ac97 *ac97)
        out_8(&regs->op1, MPC52xx_PSC_OP_RES);
        udelay(10);
        out_8(&regs->op0, MPC52xx_PSC_OP_RES);
-       udelay(50);
+       msleep(1);
        psc_ac97_warm_reset(ac97);
 }