ASoC: ti: use snd_soc_xxx_active()
[linux-2.6-microblaze.git] / sound / soc / ti / omap-mcbsp.c
index 6c83b98..4e67769 100644 (file)
@@ -786,7 +786,7 @@ static int omap_mcbsp_dai_startup(struct snd_pcm_substream *substream,
        struct omap_mcbsp *mcbsp = snd_soc_dai_get_drvdata(cpu_dai);
        int err = 0;
 
-       if (!cpu_dai->active)
+       if (!snd_soc_dai_active(cpu_dai))
                err = omap_mcbsp_request(mcbsp);
 
        /*
@@ -841,7 +841,7 @@ static void omap_mcbsp_dai_shutdown(struct snd_pcm_substream *substream,
 
        mcbsp->latency[stream1] = 0;
 
-       if (!cpu_dai->active) {
+       if (!snd_soc_dai_active(cpu_dai)) {
                omap_mcbsp_free(mcbsp);
                mcbsp->configured = 0;
        }