mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 17:23:55 +08:00
ASoC: tlv320aic31xx: Turn power off only once.
Regulator code keep count of enables and disables. Double disable causes an ugly warning. Signed-off-by: Jyri Sarha <jsarha@ti.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
9296f4da3b
commit
fd218aa3e5
@ -1020,7 +1020,8 @@ static int aic31xx_set_bias_level(struct snd_soc_codec *codec,
|
||||
}
|
||||
break;
|
||||
case SND_SOC_BIAS_OFF:
|
||||
aic31xx_power_off(codec);
|
||||
if (codec->dapm.bias_level == SND_SOC_BIAS_STANDBY)
|
||||
aic31xx_power_off(codec);
|
||||
break;
|
||||
}
|
||||
codec->dapm.bias_level = level;
|
||||
|
Loading…
Reference in New Issue
Block a user