Skip to content

Commit

Permalink
ASoC: da7219: Fix da7219->alc_en state when enabling ALC
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Axel Lin authored and Mark Brown committed Oct 21, 2015
1 parent ba856fb commit c5cff89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/da7219.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c5cff89

Please sign in to comment.