Skip to content

Commit

Permalink
ASoC: wm8994: Don't bring up to STANDBY by default
Browse files Browse the repository at this point in the history
In cases where we should enter STANDBY DAPM will power us up, otherwise
there is no need to power up and we can remain in OFF.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Feb 6, 2012
1 parent 654a28c commit 839e5fa
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions sound/soc/codecs/wm8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -2759,13 +2759,6 @@ static int wm8994_resume(struct snd_soc_codec *codec)
codec->cache_only = 0;
}

/* Restore the registers */
ret = snd_soc_cache_sync(codec);
if (ret != 0)
dev_err(codec->dev, "Failed to sync cache: %d\n", ret);

wm8994_set_bias_level(codec, SND_SOC_BIAS_STANDBY);

for (i = 0; i < ARRAY_SIZE(wm8994->fll); i++) {
if (!wm8994->fll_suspend[i].out)
continue;
Expand Down Expand Up @@ -3574,8 +3567,6 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)
wm8994->lrclk_shared[1] = 0;
}

wm8994_set_bias_level(codec, SND_SOC_BIAS_STANDBY);

/* Latch volume updates (right only; we always do left then right). */
snd_soc_update_bits(codec, WM8994_AIF1_DAC1_LEFT_VOLUME,
WM8994_AIF1DAC1_VU, WM8994_AIF1DAC1_VU);
Expand Down

0 comments on commit 839e5fa

Please sign in to comment.