]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dapm: Fix SUSPEND -> OFF bias sequence
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 6 May 2014 08:32:15 +0000 (10:32 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 12 May 2014 21:06:34 +0000 (22:06 +0100)
commit86f9abc4059659c2d271155400918cbebcb1fcc1
tree97dc538834a6c246e0a9083d62e8e92e67ed55b1
parenta8499da3af1c32ea0c8181f7269bc7d9f74a0aab
ASoC: dapm: Fix SUSPEND -> OFF bias sequence

Currently when the DAPM context bias level is SUSPEND and the target bias level
is OFF dapm_pre_sequence_async() will first transition to PREPARE and
dapm_post_sequence_async() will then transition back from PREPARE to STANDBY and
then to OFF.

This patch makes sure that dapm_pre_sequence_async() only transitions to PREPARE
when either going to ON or away from ON. This avoids the extra unnecessary
transitions.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-dapm.c