mirror of https://gitee.com/openkylin/linux.git
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:
parent
36ad1a8710
commit
25d6755213
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue