summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/tlv320dac33.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>2010-11-30 15:31:46 +0300
committerLiam Girdwood <lrg@slimlogic.co.uk>2010-11-30 18:37:39 +0300
commit3e202345abc2cea09a3601df527629102f37e563 (patch)
treed0918cb552cec3b54add97916f040c4ed762b505 /sound/soc/codecs/tlv320dac33.c
parent18f454047b3d009e347dc3aeacb1aec91a4c493f (diff)
downloadlinux-3e202345abc2cea09a3601df527629102f37e563.tar.xz
ASoC: tlv320dac33: Avoid multiple soft power up
During playback start the codec has been already powered at BIAS_ON event time, so there's no need to enable the codec again. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/codecs/tlv320dac33.c')
-rw-r--r--sound/soc/codecs/tlv320dac33.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/tlv320dac33.c b/sound/soc/codecs/tlv320dac33.c
index 080ec9183f67..a0ba5d1be1b3 100644
--- a/sound/soc/codecs/tlv320dac33.c
+++ b/sound/soc/codecs/tlv320dac33.c
@@ -642,7 +642,8 @@ static int dac33_set_bias_level(struct snd_soc_codec *codec,
switch (level) {
case SND_SOC_BIAS_ON:
- dac33_soft_power(codec, 1);
+ if (!dac33->substream)
+ dac33_soft_power(codec, 1);
break;
case SND_SOC_BIAS_PREPARE:
break;