]> Git Repo - linux.git/commitdiff
ASoC: da7219: Fix da7219->alc_en state when enabling ALC
authorAxel Lin <[email protected]>
Wed, 21 Oct 2015 00:34:37 +0000 (08:34 +0800)
committerMark Brown <[email protected]>
Wed, 21 Oct 2015 12:30:23 +0000 (13:30 +0100)
Signed-off-by: Axel Lin <[email protected]>
Tested-by: Adam Thomson <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Cc: [email protected]
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;
        }
This page took 0.073495 seconds and 4 git commands to generate.