From: Mark Brown Date: Tue, 7 Jun 2011 22:32:46 +0000 (+0100) Subject: ASoC: Allow suppression of series updates on wm_hubs devices X-Git-Tag: v3.3-rc1~14^2~930 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=780b75b4a0c3d6817cb2ef9493c1d1826cd6fc6b;p=platform%2Fkernel%2Flinux-3.10.git ASoC: Allow suppression of series updates on wm_hubs devices Some devices do not support manual updates of the DC servo. Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c index ee218a8..4ebc131 100644 --- a/sound/soc/codecs/wm_hubs.c +++ b/sound/soc/codecs/wm_hubs.c @@ -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 */ diff --git a/sound/soc/codecs/wm_hubs.h b/sound/soc/codecs/wm_hubs.h index aeb5871..0d290d2 100644 --- a/sound/soc/codecs/wm_hubs.h +++ b/sound/soc/codecs/wm_hubs.h @@ -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;