Skip to contentSkip to conversation

ASoC: tlv320aic31xx: Turn power off only once.

PATCH Applied Jyri Sarha 2 participants 2 messages Mar 17, 2014

Subsystems (3)
lore
Share & tools
lore

Jyri Sarha

author
#0 lore raw

PATCH 1/1 ASoC: tlv320aic31xx: Turn power off only once.

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

---
 sound/soc/codecs/tlv320aic31xx.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/tlv320aic31xx.c +2 -1
index 89f808b..07ddec3 100644
@@ -1021,7 +1021,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;
Signature · 1 line
1.7.9.5
maintainer Applied
#1 lore raw
Quoted 2 lines · Jyri Sarha

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

Applied, thanks.