aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/soc-dapm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 45e6a1120cbd..b521a139305a 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)
982 sys_power = 1; 982 sys_power = 1;
983 break; 983 break;
984 case SND_SOC_DAPM_STREAM_STOP: 984 case SND_SOC_DAPM_STREAM_STOP:
985 sys_power = !!codec->active; 985 sys_power = !!dapm->codec->active;
986 break; 986 break;
987 case SND_SOC_DAPM_STREAM_SUSPEND: 987 case SND_SOC_DAPM_STREAM_SUSPEND:
988 sys_power = 0; 988 sys_power = 0;