summaryrefslogtreecommitdiffstats
path: root/include/sound/sof.h
diff options
context:
space:
mode:
authorKeyon Jie <yang.jie@linux.intel.com>2021-03-19 14:49:49 +0200
committerMark Brown <broonie@kernel.org>2021-03-22 12:32:22 +0000
commitb951b51e2ca4d37dc9781e14d8a49d2f2b7e715b (patch)
tree092c61a18c10876fea3bb93f49994ce24b6d453e /include/sound/sof.h
parent2277e7e36b4b8c27eb8d2fb33a20440bc800c2d7 (diff)
downloadlinux-b951b51e2ca4d37dc9781e14d8a49d2f2b7e715b.tar.bz2
ASoC: SOF: add a helper to get topology configured mclk
Add helper sof_dai_ssp_mclk to get the topology configured MCLK from a pcm_runtime, return 0 if it is not available, and error if the dai type is not SSP at the moment. Export the helper for external use, e.g. from machine drivers. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com> Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com> Reviewed-by: Daniel Baluta <daniel.baluta@gmail.com> Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Link: https://lore.kernel.org/r/20210319124950.3853994-1-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/sof.h')
-rw-r--r--include/sound/sof.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/sof.h b/include/sound/sof.h
index 646a655c3c6b..b93bb8038080 100644
--- a/include/sound/sof.h
+++ b/include/sound/sof.h
@@ -103,5 +103,6 @@ struct sof_dev_desc {
int sof_nocodec_setup(struct device *dev, const struct snd_sof_dsp_ops *ops,
int (*pcm_dai_link_fixup)(struct snd_soc_pcm_runtime *rtd,
struct snd_pcm_hw_params *params));
+int sof_dai_get_mclk(struct snd_soc_pcm_runtime *rtd);
#endif