diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-20 21:01:51 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-22 20:00:33 +0200 |
commit | 20bac1f3f470e2d5c87af7b41b10e088e47989bb (patch) | |
tree | ab79555f3ad0f87bd495be33163c156bcd19d2a0 /sound/soc/codecs/wm_hubs.c | |
parent | ASoC: wm_hubs: Use explicit casts for converting to signed (diff) | |
download | linux-20bac1f3f470e2d5c87af7b41b10e088e47989bb.tar.xz linux-20bac1f3f470e2d5c87af7b41b10e088e47989bb.zip |
ASoC: wm_hubs: Add trace showing semantics of the DCS update
Aids diagnostics.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm_hubs.c')
-rw-r--r-- | sound/soc/codecs/wm_hubs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c index b340552efe4e..b2e939a8970e 100644 --- a/sound/soc/codecs/wm_hubs.c +++ b/sound/soc/codecs/wm_hubs.c @@ -298,11 +298,15 @@ static void enable_dc_servo(struct snd_soc_codec *codec) /* HPOUT1R */ offset = (s8)reg_r; + dev_dbg(codec->dev, "DCS right %d->%d\n", offset, + offset + hubs->dcs_codes_r); offset += hubs->dcs_codes_r; dcs_cfg = (u8)offset << WM8993_DCS_DAC_WR_VAL_1_SHIFT; /* HPOUT1L */ offset = (s8)reg_l; + dev_dbg(codec->dev, "DCS left %d->%d\n", offset, + offset + hubs->dcs_codes_l); offset += hubs->dcs_codes_l; dcs_cfg |= (u8)offset; |