ASoC: da7219: Fix da7219->alc_en state when enabling ALC
authorAxel Lin <axel.lin@ingics.com>
Wed, 21 Oct 2015 00:34:37 +0000 (08:34 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 21 Oct 2015 12:30:23 +0000 (13:30 +0100)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Tested-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/da7219.c

index abba4b36caa056d98ec92887c9322783dd5c19b2..f238c1e8a69c16e92649b878edfe07b772c8cd59 100644 (file)
@@ -402,7 +402,7 @@ static int da7219_alc_sw_put(struct snd_kcontrol *kcontrol,
        /* Force ALC offset calibration if enabling ALC */
        if ((ucontrol->value.integer.value[0]) && (!da7219->alc_en)) {
                da7219_alc_calib(codec);
-               da7219->alc_en = false;
+               da7219->alc_en = true;
        } else {
                da7219->alc_en = false;
        }