Skip to content

Commit

Permalink
ASoC: wm_hubs: Add trace showing semantics of the DCS update
Browse files Browse the repository at this point in the history
Aids diagnostics.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Aug 22, 2012
1 parent 363947d commit 20bac1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sound/soc/codecs/wm_hubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 20bac1f

Please sign in to comment.