Commit 3e202345abc2cea09a3601df527629102f37e563

Authored by Peter Ujfalusi
Committed by Liam Girdwood
1 parent 18f454047b

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>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

sound/soc/codecs/tlv320dac33.c
... ... @@ -642,7 +642,8 @@
642 642  
643 643 switch (level) {
644 644 case SND_SOC_BIAS_ON:
645   - dac33_soft_power(codec, 1);
  645 + if (!dac33->substream)
  646 + dac33_soft_power(codec, 1);
646 647 break;
647 648 case SND_SOC_BIAS_PREPARE:
648 649 break;