11 Jan
2013
11 Jan
'13
12:52 p.m.
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...