aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-05-10 14:56:03 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-05-11 14:18:34 +0100
commit3254d2850075c88083d870b3ee5e1ce0922cd3d9 (patch)
tree0c23c6ea1d4db077bb1432b17ba48947c89480af /sound
parentfd5722e5cdb233bbc47e782e10b3b5e3488a22fa (diff)
downloadkernel_samsung_tuna-3254d2850075c88083d870b3ee5e1ce0922cd3d9.zip
kernel_samsung_tuna-3254d2850075c88083d870b3ee5e1ce0922cd3d9.tar.gz
kernel_samsung_tuna-3254d2850075c88083d870b3ee5e1ce0922cd3d9.tar.bz2
ASoC: Add additional WM hubs DC servo trace
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm_hubs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c
index defdbd0..8ad43bb 100644
--- a/sound/soc/codecs/wm_hubs.c
+++ b/sound/soc/codecs/wm_hubs.c
@@ -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,