diff mbox

[RFT] ASoC: da7219: Fix da7219->alc_en state when enabling ALC

Message ID 1445387677.5319.1.camel@ingics.com (mailing list archive)
State Accepted
Commit c5cff89b5f64b4fc7f6fd9be44b1aa7e766a94e4
Headers show

Commit Message

Axel Lin Oct. 21, 2015, 12:34 a.m. UTC
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 sound/soc/codecs/da7219.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Adam Thomson Oct. 21, 2015, 9 a.m. UTC | #1
On October 21, 2015 01:35, Axel Lin wrote:

> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>  sound/soc/codecs/da7219.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c
> index 86c528a..e36a7b7 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;
>  	}
> --
> 2.1.4

Tested-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
diff mbox

Patch

diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c
index 86c528a..e36a7b7 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;
 	}