]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: SOF: sof-audio: add sof_dai_get_tdm_slots function
authorBrent Lu <brent.lu@intel.com>
Mon, 27 May 2024 19:35:47 +0000 (14:35 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 29 May 2024 10:10:54 +0000 (11:10 +0100)
commit1deba6e24c221c61c6eab8656a53f8c17035932b
tree272dbe6d78ee2081cc5c59e758c3d67e4ec31923
parent6073c477d11c1ea4b3f13d9f6e15ca54041af9a3
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>
include/sound/sof.h
sound/soc/sof/sof-audio.c
sound/soc/sof/sof-audio.h