summaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@ti.com>2012-04-25 12:12:53 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-26 17:48:19 +0100
commit47c88ffff73d27425be59b34a6d5a91518b5ebed (patch)
tree811a0b42807f3d061a2fa682f1e25e4210407fa1 /include/sound
parent618dae11f809aaccd05710aa8cee8c46a9cef1a7 (diff)
ASoC: dpcm: Add API for DAI link substream and runtime lookup
Some component drivers will need to be able to look up their DAI link substream and RTD data. Provide a mechanism for this. Signed-off-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index bbe6a5e1ac12..153da5bf2611 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -362,6 +362,11 @@ int snd_soc_platform_write(struct snd_soc_platform *platform,
unsigned int reg, unsigned int val);
int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num);
+struct snd_pcm_substream *snd_soc_get_dai_substream(struct snd_soc_card *card,
+ const char *dai_link, int stream);
+struct snd_soc_pcm_runtime *snd_soc_get_pcm_runtime(struct snd_soc_card *card,
+ const char *dai_link);
+
/* Utility functions to get clock rates from various things */
int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots);
int snd_soc_params_to_frame_size(struct snd_pcm_hw_params *params);