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
snd_soc_component_active(struct snd_soc_component *component)
{
/* DAI runtime info */
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 *capture_widget;
{
/* see snd_soc_dai_stream_active() */
dai->stream_active[stream] += action;
- dai->active += action;
+
/* see snd_soc_component_active() */
dai->component->active += action;
}