projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9296f4d
)
ASoC: tlv320aic31xx: Turn power off only once.
author
Jyri Sarha
<jsarha@ti.com>
Mon, 17 Mar 2014 07:31:31 +0000
(09:31 +0200)
committer
Mark Brown
<broonie@linaro.org>
Mon, 17 Mar 2014 13:16:59 +0000
(13:16 +0000)
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>
sound/soc/codecs/tlv320aic31xx.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/tlv320aic31xx.c
b/sound/soc/codecs/tlv320aic31xx.c
index
d3517a9
..
1f243c2
100644
(file)
--- a/
sound/soc/codecs/tlv320aic31xx.c
+++ b/
sound/soc/codecs/tlv320aic31xx.c
@@
-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;