diff options
author | Brent Lu <brent.lu@intel.com> | 2024-05-27 14:35:47 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-05-29 11:10:54 +0100 |
commit | 1deba6e24c221c61c6eab8656a53f8c17035932b (patch) | |
tree | 272dbe6d78ee2081cc5c59e758c3d67e4ec31923 /include/sound | |
parent | 6073c477d11c1ea4b3f13d9f6e15ca54041af9a3 (diff) | |
download | lwn-1deba6e24c221c61c6eab8656a53f8c17035932b.tar.gz lwn-1deba6e24c221c61c6eab8656a53f8c17035932b.zip |
ASoC: SOF: sof-audio: add sof_dai_get_tdm_slots function
An new interface, sof_dai_get_tdm_slots(), is added for machine driver
to get tdm slot number from topology. The dai_get_param() callback
needs to support new parameter type SOF_DAI_PARAM_INTEL_SSP_TDM_SLOTS
by returning the tdm slot number of specific SSP port.
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Brent Lu <brent.lu@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://msgid.link/r/20240527193552.165567-14-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/sof.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/sof.h b/include/sound/sof.h index ec6c30d54592..64fd5504cb2b 100644 --- a/include/sound/sof.h +++ b/include/sound/sof.h @@ -173,5 +173,6 @@ struct sof_dev_desc { int sof_dai_get_mclk(struct snd_soc_pcm_runtime *rtd); int sof_dai_get_bclk(struct snd_soc_pcm_runtime *rtd); +int sof_dai_get_tdm_slots(struct snd_soc_pcm_runtime *rtd); #endif |