mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 23:51:39 +00:00
ASoC: da7219: Fix da7219->alc_en state when enabling ALC
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
This commit is contained in:
parent
ba856fbd60
commit
c5cff89b5f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user