]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: add a helper to get topology configured mclk
authorKeyon Jie <yang.jie@linux.intel.com>
Fri, 19 Mar 2021 12:49:49 +0000 (14:49 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 22 Mar 2021 12:32:22 +0000 (12:32 +0000)
commitfc4b1aa0a47558a5e4d204fa789b244a65720834
tree092c61a18c10876fea3bb93f49994ce24b6d453e
parent817d9ef51118ae545ca4bf7b15b4590973a6df03
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>
include/sound/sof.h
sound/soc/sof/sof-audio.c