Skip to content

Commit 20bac1f

Browse files
committed
ASoC: wm_hubs: Add trace showing semantics of the DCS update
Aids diagnostics. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
1 parent 363947d commit 20bac1f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎sound/soc/codecs/wm_hubs.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,15 @@ static void enable_dc_servo(struct snd_soc_codec *codec)
298298

299299
/* HPOUT1R */
300300
offset = (s8)reg_r;
301+
dev_dbg(codec->dev, "DCS right %d->%d\n", offset,
302+
offset + hubs->dcs_codes_r);
301303
offset += hubs->dcs_codes_r;
302304
dcs_cfg = (u8)offset << WM8993_DCS_DAC_WR_VAL_1_SHIFT;
303305

304306
/* HPOUT1L */
305307
offset = (s8)reg_l;
308+
dev_dbg(codec->dev, "DCS left %d->%d\n", offset,
309+
offset + hubs->dcs_codes_l);
306310
offset += hubs->dcs_codes_l;
307311
dcs_cfg |= (u8)offset;
308312

0 commit comments

Comments
 (0)