From: Jarkko Nikula Date: Fri, 10 Dec 2010 18:54:49 +0000 (+0200) Subject: ASoC: Fix build error caused by merging a fix for 2.6.37 into 2.6.38 X-Git-Tag: v2.6.38-rc1~7^2^2~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f0e25282b93242780a405585a8e3e6f0cc7fa91;p=platform%2Fkernel%2Flinux-3.10.git ASoC: Fix build error caused by merging a fix for 2.6.37 into 2.6.38 Fix "ASoC: Fix bias power down of non-DAPM codec" for 3.6.37 will cause a build error when merging into ASoC for-2.6.38. Fix the issue by doing a change that commit ce6120c "ASoC: Decouple DAPM from CODECs" would do. Signed-off-by: Jarkko Nikula Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 45e6a11..b521a13 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -982,7 +982,7 @@ static int dapm_power_widgets(struct snd_soc_dapm_context *dapm, int event) sys_power = 1; break; case SND_SOC_DAPM_STREAM_STOP: - sys_power = !!codec->active; + sys_power = !!dapm->codec->active; break; case SND_SOC_DAPM_STREAM_SUSPEND: sys_power = 0;