ASoC: Allow suppression of series updates on wm_hubs devices
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 7 Jun 2011 22:32:46 +0000 (23:32 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 23 Jun 2011 19:05:31 +0000 (20:05 +0100)
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>
sound/soc/codecs/wm_hubs.c
sound/soc/codecs/wm_hubs.h

index ee218a80e5878f60b31d81387a56d960e180cf43..4ebc131b7f3663ff1265a6283f6c2f6b05c29262 100644 (file)
@@ -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 */
index aeb58712a0e8f88f226936cab11f6116c0375919..0d290d2740ec7d8392099bab5d4c31f1d565d21e 100644 (file)
@@ -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;