* [PATCH] ASoC: tlv320aic31xx: Turn power off only once.
@ 2014-03-17 7:31 Jyri Sarha
2014-03-17 13:17 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Jyri Sarha @ 2014-03-17 7:31 UTC (permalink / raw)
To: alsa-devel, linux-omap; +Cc: broonie, lgirdwood, Jyri Sarha
Regulator code keep count of enables and disables. Double disable
causes an ugly warning.
Signed-off-by: Jyri Sarha <jsarha@ti.com>
---
sound/soc/codecs/tlv320aic31xx.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/soc/codecs/tlv320aic31xx.c b/sound/soc/codecs/tlv320aic31xx.c
index 89f808b..07ddec3 100644
--- a/sound/soc/codecs/tlv320aic31xx.c
+++ b/sound/soc/codecs/tlv320aic31xx.c
@@ -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;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-17 13:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-17 7:31 [PATCH] ASoC: tlv320aic31xx: Turn power off only once Jyri Sarha
2014-03-17 13:17 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox