From: Axel Lin Date: Wed, 21 Oct 2015 00:34:37 +0000 (+0800) Subject: ASoC: da7219: Fix da7219->alc_en state when enabling ALC X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c5cff89b5f64b4fc7f6fd9be44b1aa7e766a94e4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ASoC: da7219: Fix da7219->alc_en state when enabling ALC Signed-off-by: Axel Lin Tested-by: Adam Thomson Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c index abba4b36caa0..f238c1e8a69c 100644 --- a/sound/soc/codecs/da7219.c +++ b/sound/soc/codecs/da7219.c @@ -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; }