Skip to content

Commit

Permalink
ASoC: Allow suppression of series updates on wm_hubs devices
Browse files Browse the repository at this point in the history
Some devices do not support manual updates of the DC servo.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
  • Loading branch information
Mark Brown committed Jun 23, 2011
1 parent f9acf9f commit 780b75b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm_hubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ static int wm8993_put_dc_servo(struct snd_kcontrol *kcontrol,

/* If we're applying an offset correction then updating the
* callibration would be likely to introduce further offsets. */
if (hubs->dcs_codes)
if (hubs->dcs_codes || hubs->no_series_update)
return ret;

/* Only need to do this if the outputs are active */
Expand Down
1 change: 1 addition & 0 deletions sound/soc/codecs/wm_hubs.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ struct wm_hubs_data {
int dcs_readback_mode;
int hp_startup_mode;
int series_startup;
int no_series_update;

bool class_w;
u16 class_w_dcs;
Expand Down

0 comments on commit 780b75b

Please sign in to comment.