OSDN Git Service

ASoC: dapm: Check for bias level when powering down
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 22 Feb 2012 15:52:56 +0000 (15:52 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Mar 2012 17:32:57 +0000 (10:32 -0700)
commit973c38c2d69dabf942f510d5bb2af8c3f1669c82
tree7a4879d516e8b7fc04e6ba207639b5cb105156ab
parentd4d6cc13fa9c22283fdb6c5261ff988d00e018b8
ASoC: dapm: Check for bias level when powering down

commit 7679e42ec833ed70aa34790a5f39dcb7e5bda4fe upstream.

Recent enhancements in the bias management means that we might not be
in standby when the CODEC is idle and can have active widgets without
being in full power mode but the shutdown functionality assumes these
things. Add checks for the bias level at each stage so that we don't
do transitions other than the ON->PREPARE->STANDBY->OFF ones that the
drivers are expecting.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/soc-dapm.c