OSDN Git Service

ASoC: uniphier: use snd_soc_xxx_active()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 15 May 2020 00:47:53 +0000 (09:47 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 18 May 2020 15:15:14 +0000 (16:15 +0100)
We have snd_soc_dai/dai_stream/component_active() macro
This patch uses it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/87lflu58hy.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/uniphier/aio-cpu.c

index fdaa652..25c40c2 100644 (file)
@@ -424,7 +424,7 @@ static void uniphier_aio_dai_suspend(struct snd_soc_dai *dai)
 {
        struct uniphier_aio *aio = uniphier_priv(dai);
 
-       if (!dai->active)
+       if (!snd_soc_dai_active(dai))
                return;
 
        aio->chip->num_wup_aios--;
@@ -448,7 +448,7 @@ static int uniphier_aio_dai_resume(struct snd_soc_dai *dai)
        struct uniphier_aio *aio = uniphier_priv(dai);
        int ret, i;
 
-       if (!dai->active)
+       if (!snd_soc_dai_active(dai))
                return 0;
 
        if (!aio->chip->active)