Commit 0812a08a authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: cleanup dai / component active code

No one is using dai->active, snd_soc_component_is_active().
Let's remove these.
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/87imgy58hp.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8db4f94f
...@@ -389,12 +389,6 @@ static inline void *snd_soc_component_get_drvdata(struct snd_soc_component *c) ...@@ -389,12 +389,6 @@ static inline void *snd_soc_component_get_drvdata(struct snd_soc_component *c)
return dev_get_drvdata(c->dev); return dev_get_drvdata(c->dev);
} }
static inline bool snd_soc_component_is_active(
struct snd_soc_component *component)
{
return component->active != 0;
}
static inline unsigned int static inline unsigned int
snd_soc_component_active(struct snd_soc_component *component) snd_soc_component_active(struct snd_soc_component *component)
{ {
......
...@@ -364,8 +364,6 @@ struct snd_soc_dai { ...@@ -364,8 +364,6 @@ struct snd_soc_dai {
/* DAI runtime info */ /* DAI runtime info */
unsigned int stream_active[SNDRV_PCM_STREAM_LAST + 1]; /* usage count */ unsigned int stream_active[SNDRV_PCM_STREAM_LAST + 1]; /* usage count */
unsigned int active;
struct snd_soc_dapm_widget *playback_widget; struct snd_soc_dapm_widget *playback_widget;
struct snd_soc_dapm_widget *capture_widget; struct snd_soc_dapm_widget *capture_widget;
......
...@@ -393,7 +393,7 @@ void snd_soc_dai_action(struct snd_soc_dai *dai, ...@@ -393,7 +393,7 @@ void snd_soc_dai_action(struct snd_soc_dai *dai,
{ {
/* see snd_soc_dai_stream_active() */ /* see snd_soc_dai_stream_active() */
dai->stream_active[stream] += action; dai->stream_active[stream] += action;
dai->active += action;
/* see snd_soc_component_active() */ /* see snd_soc_component_active() */
dai->component->active += action; dai->component->active += action;
} }
......
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