ASoC: uniphier: use snd_soc_xxx_active()

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>
This commit is contained in:
Kuninori Morimoto 2020-05-15 09:47:53 +09:00 committed by Mark Brown
parent 36ad1a8710
commit 25d6755213
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
1 changed files with 2 additions and 2 deletions

View File

@ -424,7 +424,7 @@ static void uniphier_aio_dai_suspend(struct snd_soc_dai *dai)
{ {
struct uniphier_aio *aio = uniphier_priv(dai); struct uniphier_aio *aio = uniphier_priv(dai);
if (!dai->active) if (!snd_soc_dai_active(dai))
return; return;
aio->chip->num_wup_aios--; 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); struct uniphier_aio *aio = uniphier_priv(dai);
int ret, i; int ret, i;
if (!dai->active) if (!snd_soc_dai_active(dai))
return 0; return 0;
if (!aio->chip->active) if (!aio->chip->active)