[alsa-devel] [PATCH 2/5] ASoC: twl6040: Prevent extra power transitions during resume
Mark Brown
broonie at opensource.wolfsonmicro.com
Fri Jan 11 12:52:07 CET 2013
On Fri, Jan 11, 2013 at 11:32:32AM +0100, Peter Ujfalusi wrote:
> - twl6040_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
> - twl6040_set_bias_level(codec, codec->dapm.suspend_bias_level);
> + if (codec->dapm.bias_level != codec->dapm.suspend_bias_level) {
> + twl6040_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
> + twl6040_set_bias_level(codec, codec->dapm.suspend_bias_level);
> + }
The device should always be in either _STANDBY or _OFF (depending on if
it supports idle_bias_off) before it tries to suspend so
suspend_bias_level ought to be redundant. We should really get round to
killing it...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130111/1c1f4142/attachment.sig>
More information about the Alsa-devel
mailing list