Commit c5cff89b authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

ASoC: da7219: Fix da7219->alc_en state when enabling ALC

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Tested-by: default avatarAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
parent ba856fbd
...@@ -402,7 +402,7 @@ static int da7219_alc_sw_put(struct snd_kcontrol *kcontrol, ...@@ -402,7 +402,7 @@ static int da7219_alc_sw_put(struct snd_kcontrol *kcontrol,
/* Force ALC offset calibration if enabling ALC */ /* Force ALC offset calibration if enabling ALC */
if ((ucontrol->value.integer.value[0]) && (!da7219->alc_en)) { if ((ucontrol->value.integer.value[0]) && (!da7219->alc_en)) {
da7219_alc_calib(codec); da7219_alc_calib(codec);
da7219->alc_en = false; da7219->alc_en = true;
} else { } else {
da7219->alc_en = false; da7219->alc_en = false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment