Commit e1c7e1fa authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: atomel: use snd_soc_xxx_active()

We have snd_soc_dai/dai_stream/component_active() macro
This patch uses it.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/871rnm6n3z.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent b3dea624
...@@ -765,7 +765,7 @@ static int atmel_ssc_suspend(struct snd_soc_component *component) ...@@ -765,7 +765,7 @@ static int atmel_ssc_suspend(struct snd_soc_component *component)
struct atmel_ssc_info *ssc_p; struct atmel_ssc_info *ssc_p;
struct platform_device *pdev = to_platform_device(component->dev); struct platform_device *pdev = to_platform_device(component->dev);
if (!component->active) if (!snd_soc_component_active(component))
return 0; return 0;
ssc_p = &ssc_info[pdev->id]; ssc_p = &ssc_info[pdev->id];
...@@ -793,7 +793,7 @@ static int atmel_ssc_resume(struct snd_soc_component *component) ...@@ -793,7 +793,7 @@ static int atmel_ssc_resume(struct snd_soc_component *component)
struct platform_device *pdev = to_platform_device(component->dev); struct platform_device *pdev = to_platform_device(component->dev);
u32 cr; u32 cr;
if (!component->active) if (!snd_soc_component_active(component))
return 0; return 0;
ssc_p = &ssc_info[pdev->id]; ssc_p = &ssc_info[pdev->id];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment