ASoC: Add debug logging for s3c-ac97 resets
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 23 Sep 2010 16:41:46 +0000 (17:41 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 24 Sep 2010 09:41:02 +0000 (10:41 +0100)
Helps tracing errors further up the stack.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/s3c24xx/s3c-ac97.c

index 31e2b3d35a90c40b9fed1a562d2b9b83ccf11606..f891eb79b5754b19fd0dd443a09481cd2eb743b1 100644 (file)
@@ -163,6 +163,7 @@ static void s3c_ac97_write(struct snd_ac97 *ac97, unsigned short reg,
 
 static void s3c_ac97_cold_reset(struct snd_ac97 *ac97)
 {
+       pr_debug("AC97: Cold reset\n");
        writel(S3C_AC97_GLBCTRL_COLDRESET,
                        s3c_ac97.regs + S3C_AC97_GLBCTRL);
        msleep(1);
@@ -179,6 +180,8 @@ static void s3c_ac97_warm_reset(struct snd_ac97 *ac97)
        if (stat == S3C_AC97_GLBSTAT_MAINSTATE_ACTIVE)
                return; /* Return if already active */
 
+       pr_debug("AC97: Warm reset\n");
+
        writel(S3C_AC97_GLBCTRL_WARMRESET, s3c_ac97.regs + S3C_AC97_GLBCTRL);
        msleep(1);