diff --git a/ac101.c b/ac101.c index 26aa9e3..73720fc 100644 --- a/ac101.c +++ b/ac101.c @@ -956,9 +956,9 @@ void ac101_aif_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai AC101_DBG("stream = %s, play: %d, capt: %d, active: %d\n", snd_pcm_stream_str(substream), codec_dai->stream_active[SNDRV_PCM_STREAM_PLAYBACK], codec_dai->stream_active[SNDRV_PCM_STREAM_CAPTURE], - codec_dai->active); + snd_soc_dai_active(codec_dai)); - if (!codec_dai->active) { + if (snd_soc_dai_active(codec_dai)) { ac10x->aif1_clken = 1; ac101_aif1clk(codec, SND_SOC_DAPM_POST_PMD, 0); } else {