Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd218aa3 authored by Jyri Sarha's avatar Jyri Sarha Committed by Mark Brown
Browse files

ASoC: tlv320aic31xx: Turn power off only once.



Regulator code keep count of enables and disables. Double disable
causes an ugly warning.

Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 9296f4da
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1020,6 +1020,7 @@ static int aic31xx_set_bias_level(struct snd_soc_codec *codec,
		}
		break;
	case SND_SOC_BIAS_OFF:
		if (codec->dapm.bias_level == SND_SOC_BIAS_STANDBY)
			aic31xx_power_off(codec);
		break;
	}