[alsa-devel] [PATCH for 2.6.40] ASoC: Fix power down for widgetless per-card DAPM context case
Liam Girdwood
lrg at ti.com
Thu May 26 16:38:42 CEST 2011
On 26/05/11 14:32, Jarkko Nikula wrote:
> Commit 52ba67b ("ASoC: Force all DAPM contexts into the same bias state")
> powers up all the DAPM contexts in a card if any DAPM context becomes
> active. Unfortunately power down newer happens if per-card DAPM context
> doesn't have any widgets.
>
> Reason for this is that power state of per-card DAPM context without
> widgets is never cleared and thus all the DAPM contexts remain permanently
> active. Test for widgetless calling DAPM context in dapm_power_widgets()
> doesn't work for per-card DAPM context since power change is never
> originating from widgetless per-card DAPM context.
>
> Fix this by pre-clearing power state flag of non-codec DAPM context at the
> beginning of power sequence.
>
> Signed-off-by: Jarkko Nikula <jhnikula at gmail.com>
> ---
> sound/soc/soc-dapm.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
Acked-by: Liam Girdwood <lrg at ti.com>
More information about the Alsa-devel
mailing list