ASoC: Add additional WM hubs DC servo trace
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 10 May 2010 13:56:03 +0000 (14:56 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 11 May 2010 13:18:34 +0000 (14:18 +0100)
Log the values we're getting back from the DC servo and the values we
write to it.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/wm_hubs.c

index defdbd08e135b91868847b706655b821485eb7ec..8ad43bb32eb05993cd2c60719fc4eca9d8fb431d 100644 (file)
@@ -127,6 +127,8 @@ static void calibrate_dc_servo(struct snd_soc_codec *codec)
                        break;
                }
 
+               dev_dbg(codec->dev, "DCS input: %x %x\n", reg_l, reg_r);
+
                /* HPOUT1L */
                if (reg_l + hubs->dcs_codes > 0 &&
                    reg_l + hubs->dcs_codes < 0xff)
@@ -139,6 +141,8 @@ static void calibrate_dc_servo(struct snd_soc_codec *codec)
                        reg_r += hubs->dcs_codes;
                dcs_cfg |= reg_r;
 
+               dev_dbg(codec->dev, "DCS result: %x\n", dcs_cfg);
+
                /* Do it */
                snd_soc_write(codec, WM8993_DC_SERVO_3, dcs_cfg);
                wait_for_dc_servo(codec,