diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-03-05 16:17:43 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-06 13:04:55 +0400 |
commit | 24894b76468ed250d03f9718ddfe77b902995cbd (patch) | |
tree | 6e8391d1b22f78f568559773182dd9dc633d5e8e /include/sound/soc.h | |
parent | 208a1589db3e30767223d97e39e13237328e8a6e (diff) | |
download | linux-24894b76468ed250d03f9718ddfe77b902995cbd.tar.xz |
ASoC: Add helper functions for PCM runtime 'active' management
We have the same code that increments and decrements the active field of the
various PCM runtime components (all with the same bugs). Factor this out into
common helper functions.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r-- | include/sound/soc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 93c31c70b90a..53d15e0e6e89 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -414,6 +414,8 @@ struct snd_soc_pcm_runtime *snd_soc_get_pcm_runtime(struct snd_soc_card *card, const char *dai_link); bool snd_soc_runtime_ignore_pmdown_time(struct snd_soc_pcm_runtime *rtd); +void snd_soc_runtime_activate(struct snd_soc_pcm_runtime *rtd, int stream); +void snd_soc_runtime_deactivate(struct snd_soc_pcm_runtime *rtd, int stream); /* Utility functions to get clock rates from various things */ int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots); |